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
@@ -1403,8 +1403,8 @@ class SmartWaypointMgr
|
||||
public:
|
||||
static SmartWaypointMgr* instance()
|
||||
{
|
||||
static SmartWaypointMgr* instance = new SmartWaypointMgr();
|
||||
return instance;
|
||||
static SmartWaypointMgr instance;
|
||||
return &instance;
|
||||
}
|
||||
|
||||
void LoadFromDB();
|
||||
@@ -1439,8 +1439,8 @@ class SmartAIMgr
|
||||
public:
|
||||
static SmartAIMgr* instance()
|
||||
{
|
||||
static SmartAIMgr* instance = new SmartAIMgr();
|
||||
return instance;
|
||||
static SmartAIMgr instance;
|
||||
return &instance;
|
||||
}
|
||||
|
||||
void LoadSmartAIFromDB();
|
||||
|
||||
Reference in new issue
Block a user