Core/Game: Move singleton instances into compilation units

* Fixes issues when building shared libraries
  (prevents gcc and clang from providing several instance)

(cherry picked from commit 329225b40d)
This commit is contained in:
Naios
2016-03-11 19:41:10 +01:00
parent 3a4ec8bcbe
commit b7f936891a
66 changed files with 251 additions and 175 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();