Refactored singletons to enable proper deconstruction during shutdown
This commit is contained in:
1 parent
d2c120f2c2
commit
dce92611f3
39 files changed
+83
-84
No files matched your search
@@ -881,8 +881,8 @@ class ScriptMgr
|
||||
public: /* Initialization */
|
||||
static ScriptMgr* instance()
|
||||
{
|
||||
static ScriptMgr* instance = new ScriptMgr();
|
||||
return instance;
|
||||
static ScriptMgr instance;
|
||||
return &instance;
|
||||
}
|
||||
|
||||
void Initialize();
|
||||
|
||||
Reference in new issue
Block a user