From afa2b8714f2e5dcbc45099c9a9418b25bfcc097f Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 16 Jul 2011 17:39:03 +0300 Subject: [PATCH] Attempt to fix a problem with the factory mappings of objects residing in different source files than the prototype objects that fill them in --- src/clientobject.cpp | 2 -- src/content_cao.cpp | 2 ++ src/content_sao.cpp | 2 ++ src/serverobject.cpp | 2 -- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/clientobject.cpp b/src/clientobject.cpp index 787efef..bec9f46 100644 --- a/src/clientobject.cpp +++ b/src/clientobject.cpp @@ -26,8 +26,6 @@ with this program; if not, write to the Free Software Foundation, Inc., ClientActiveObject */ -core::map ClientActiveObject::m_types; - ClientActiveObject::ClientActiveObject(u16 id): ActiveObject(id) { diff --git a/src/content_cao.cpp b/src/content_cao.cpp index ab20f1a..dc5ac40 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -21,6 +21,8 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "tile.h" #include "environment.h" +core::map ClientActiveObject::m_types; + /* TestCAO */ diff --git a/src/content_sao.cpp b/src/content_sao.cpp index fc6f208..c41f4ed 100644 --- a/src/content_sao.cpp +++ b/src/content_sao.cpp @@ -21,6 +21,8 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "collision.h" #include "environment.h" +core::map ServerActiveObject::m_types; + /* TestSAO */ diff --git a/src/serverobject.cpp b/src/serverobject.cpp index 8acb35f..ce19ea3 100644 --- a/src/serverobject.cpp +++ b/src/serverobject.cpp @@ -21,8 +21,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include "inventory.h" -core::map ServerActiveObject::m_types; - ServerActiveObject::ServerActiveObject(ServerEnvironment *env, u16 id, v3f pos): ActiveObject(id), m_known_by_count(0),