Core/Misc: Fix static analysis issues

This commit is contained in:
jackpoz
2017-11-12 12:44:45 +01:00
parent 9b7c73a19d
commit a80c95a1c7
8 changed files with 15 additions and 24 deletions
@@ -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);
}
}
}