Move NodeMetadata prototype containers to content_nodemeta.cpp to fix them not being...
authorPerttu Ahola <celeron55@gmail.com>
Wed, 30 Nov 2011 23:58:31 +0000 (01:58 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Wed, 30 Nov 2011 23:58:31 +0000 (01:58 +0200)
src/content_nodemeta.cpp
src/nodemetadata.cpp

index 0641941866cc4e7790a83cd2a77e38b6f8804325..8666051a4a1538b16244dc48fc49a93ee3370240 100644 (file)
@@ -32,6 +32,9 @@ class Inventory;
 #define NODEMETA_FURNACE 16
 #define NODEMETA_LOCKABLE_CHEST 17
 
+core::map<u16, NodeMetadata::Factory> NodeMetadata::m_types;
+core::map<std::string, NodeMetadata::Factory2> NodeMetadata::m_names;
+
 class SignNodeMetadata : public NodeMetadata
 {
 public:
index 7abf824262fbdbfeebfe99a4b3afa0b1fd51911a..410b4e2ea78bcb12cf89020dba9451aeb2336312 100644 (file)
@@ -30,9 +30,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
        NodeMetadata
 */
 
-core::map<u16, NodeMetadata::Factory> NodeMetadata::m_types;
-core::map<std::string, NodeMetadata::Factory2> NodeMetadata::m_names;
-
 NodeMetadata::NodeMetadata(IGameDef *gamedef):
        m_gamedef(gamedef)
 {