fix clang warnings Wundefined-var-template

This commit is contained in:
Rochet2
2017-04-12 23:20:27 +03:00
parent d7ec5438a5
commit 4cc5e42562
2 changed files with 3 additions and 3 deletions

View File

@@ -401,4 +401,7 @@ ElunaObject::ElunaObject(T * obj, bool manageMemory) : _isvalid(false), _invalid
SetValid(true); SetValid(true);
} }
template<typename T> const char* ElunaTemplate<T>::tname = NULL;
template<typename T> bool ElunaTemplate<T>::manageMemory = false;
#endif #endif

View File

@@ -1263,9 +1263,6 @@ ElunaRegister<BattleGround> BattleGroundMethods[] =
{ NULL, NULL } { NULL, NULL }
}; };
template<typename T> const char* ElunaTemplate<T>::tname = NULL;
template<typename T> bool ElunaTemplate<T>::manageMemory = false;
#if (!defined(TBC) && !defined(CLASSIC)) #if (!defined(TBC) && !defined(CLASSIC))
// fix compile error about accessing vehicle destructor // fix compile error about accessing vehicle destructor
template<> int ElunaTemplate<Vehicle>::CollectGarbage(lua_State* L) template<> int ElunaTemplate<Vehicle>::CollectGarbage(lua_State* L)