Core/Game: Move singleton instances into compilation units

* Fixes issues when building shared libraries
  (prevents gcc and clang from providing several instance)
This commit is contained in:
Naios
2016-03-11 17:11:05 +01:00
parent a8fe7f6eb7
commit 329225b40d
74 changed files with 279 additions and 195 deletions

View File

@@ -246,6 +246,12 @@ ScriptMgr::ScriptMgr() : _scriptCount(0), _scheduledScripts(0)
ScriptMgr::~ScriptMgr() { }
ScriptMgr* ScriptMgr::instance()
{
static ScriptMgr instance;
return &instance;
}
void ScriptMgr::Initialize()
{
uint32 oldMSTime = getMSTime();