Core/Misc: Fix static analysis issues

(cherry picked from commit a80c95a1c788932696fb43e69b9012a751431bac)
This commit is contained in:
jackpoz
2021-02-06 21:41:51 +01:00
committed by Shauren
parent 388034498f
commit 852c9e9108
6 changed files with 10 additions and 17 deletions
@@ -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);
}
}
}