Move NodeMetadata prototype containers to content_nodemeta.cpp to fix them not being filled correctly on some systems and compilers

This commit is contained in:
Perttu Ahola 2011-12-01 01:58:31 +02:00
parent 74c6836f2f
commit 8b8ef8acc0
2 changed files with 3 additions and 3 deletions

@ -32,6 +32,9 @@ class Inventory;
#define NODEMETA_FURNACE 16 #define NODEMETA_FURNACE 16
#define NODEMETA_LOCKABLE_CHEST 17 #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 class SignNodeMetadata : public NodeMetadata
{ {
public: public:

@ -30,9 +30,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
NodeMetadata NodeMetadata
*/ */
core::map<u16, NodeMetadata::Factory> NodeMetadata::m_types;
core::map<std::string, NodeMetadata::Factory2> NodeMetadata::m_names;
NodeMetadata::NodeMetadata(IGameDef *gamedef): NodeMetadata::NodeMetadata(IGameDef *gamedef):
m_gamedef(gamedef) m_gamedef(gamedef)
{ {