diff options
Diffstat (limited to 'src/serverobject.h')
-rw-r--r-- | src/serverobject.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/serverobject.h b/src/serverobject.h index fd8a51a9e..d2627c87e 100644 --- a/src/serverobject.h +++ b/src/serverobject.h @@ -200,14 +200,17 @@ protected: typedef ServerActiveObject* (*Factory) (ServerEnvironment *env, v3f pos, const std::string &data); - static void registerType(u16 type, Factory f); + static void registerType(u8 type, Factory f); ServerEnvironment *m_env; v3f m_base_position; private: - // Used for creating objects based on type - static core::map<u16, Factory> m_types; + static core::map<u8, Factory>& getTypes() + { + static core::map<u8, Factory> types; + return types; + } }; #endif |