Core/Creatures: ensure that ai is enabled when updating ai for corpses

This commit is contained in:
Ovahlord committed 2020-07-24 12:32:51 +02:00
1 parent e4ba06c828
commit 9d618c3162
1 file changed
+1 -1
@@ -664,7 +664,7 @@ void Creature::Update(uint32 diff)
if (m_deathState != CORPSE)
break;
if (IsEngaged())
if (IsEngaged() && IsAIEnabled)
{
m_AI_locked = true;
i_AI->UpdateAI(diff);