aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/SmartScripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/AI/SmartScripts')
-rw-r--r--src/server/game/AI/SmartScripts/SmartScriptMgr.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.h b/src/server/game/AI/SmartScripts/SmartScriptMgr.h
index 0380ec8bae9..d4afba54498 100644
--- a/src/server/game/AI/SmartScripts/SmartScriptMgr.h
+++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.h
@@ -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();