Core/Misc: Fix static analysis issues

(cherry picked from commit a80c95a1c7)
This commit is contained in:
jackpoz
2017-11-12 12:44:45 +01:00
committed by Shauren
parent 388034498f
commit 852c9e9108
6 changed files with 10 additions and 17 deletions

View File

@@ -2090,7 +2090,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);
}
}
}