diff options
| author | jackpoz <giacomopoz@gmail.com> | 2017-11-12 12:44:45 +0100 |
|---|---|---|
| committer | jackpoz <giacomopoz@gmail.com> | 2017-11-12 14:55:11 +0100 |
| commit | a80c95a1c788932696fb43e69b9012a751431bac (patch) | |
| tree | c6c116b1b1923e3ca72682c2fd98a3b883a1c384 /src/server/game/AI/SmartScripts | |
| parent | 9b7c73a19df66849ec829fc5a94875aa9593934d (diff) | |
Core/Misc: Fix static analysis issues
Diffstat (limited to 'src/server/game/AI/SmartScripts')
| -rw-r--r-- | src/server/game/AI/SmartScripts/SmartScript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp index a27a0596528..30fa5deadc3 100644 --- a/src/server/game/AI/SmartScripts/SmartScript.cpp +++ b/src/server/game/AI/SmartScripts/SmartScript.cpp @@ -2023,7 +2023,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u } if (closest.first != 0) - CAST_AI(SmartAI, creature->AI())->StartPath(false, closest.first, true, nullptr, closest.second); + ENSURE_AI(SmartAI, creature->AI())->StartPath(false, closest.first, true, nullptr, closest.second); } } } |
