From a80c95a1c788932696fb43e69b9012a751431bac Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sun, 12 Nov 2017 12:44:45 +0100 Subject: Core/Misc: Fix static analysis issues --- src/server/game/AI/SmartScripts/SmartScript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/game/AI/SmartScripts') 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); } } } -- cgit v1.2.3