diff --git a/ElunaTemplate.h b/ElunaTemplate.h index d0bb6b8..b2dc902 100644 --- a/ElunaTemplate.h +++ b/ElunaTemplate.h @@ -401,4 +401,7 @@ ElunaObject::ElunaObject(T * obj, bool manageMemory) : _isvalid(false), _invalid SetValid(true); } +template const char* ElunaTemplate::tname = NULL; +template bool ElunaTemplate::manageMemory = false; + #endif diff --git a/LuaFunctions.cpp b/LuaFunctions.cpp index 075bbaa..e8cbb66 100644 --- a/LuaFunctions.cpp +++ b/LuaFunctions.cpp @@ -1263,9 +1263,6 @@ ElunaRegister BattleGroundMethods[] = { NULL, NULL } }; -template const char* ElunaTemplate::tname = NULL; -template bool ElunaTemplate::manageMemory = false; - #if (!defined(TBC) && !defined(CLASSIC)) // fix compile error about accessing vehicle destructor template<> int ElunaTemplate::CollectGarbage(lua_State* L)