Refactored singletons to enable proper deconstruction during shutdown

This commit is contained in:
leak
2014-07-20 00:40:08 +02:00
parent d2c120f2c2
commit dce92611f3
39 changed files with 83 additions and 84 deletions
+2 -2
View File
@@ -54,8 +54,8 @@ class SystemMgr
public:
static SystemMgr* instance()
{
static SystemMgr* instance = new SystemMgr();
return instance;
static SystemMgr instance;
return &instance;
}
typedef std::unordered_map<uint32, ScriptPointVector> PointMoveMap;