From dd73852ce460defffe6406ce961342db507eeade Mon Sep 17 00:00:00 2001 From: sapier Date: Sun, 15 Jan 2012 20:55:30 +0100 Subject: split content_cao.cpp file into multiple separate files --- src/clientobject.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/clientobject.cpp') diff --git a/src/clientobject.cpp b/src/clientobject.cpp index 93f3b1cca..3312b1254 100644 --- a/src/clientobject.cpp +++ b/src/clientobject.cpp @@ -43,8 +43,8 @@ ClientActiveObject* ClientActiveObject::create(u8 type, IGameDef *gamedef, ClientEnvironment *env) { // Find factory function - core::map::Node *n; - n = m_types.find(type); + core::map::Node *n; + n = ClientActiveObject::getTypes().find(type); if(n == NULL) { // If factory is not found, just return. @@ -58,13 +58,13 @@ ClientActiveObject* ClientActiveObject::create(u8 type, IGameDef *gamedef, return object; } -void ClientActiveObject::registerType(u16 type, Factory f) +void ClientActiveObject::registerType(u8 type, Factory f) { - core::map::Node *n; - n = m_types.find(type); + core::map::Node *n; + n = ClientActiveObject::getTypes().find(type); if(n) return; - m_types.insert(type, f); + ClientActiveObject::getTypes().insert(type, f); } -- cgit v1.2.3