mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Refactored singletons to enable proper deconstruction during shutdown
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user