Core/Objects: Call base class Update function for Unit and GameObject (currently does nothing)

This commit is contained in:
Shauren
2023-01-15 23:01:10 +01:00
parent c312eb8a69
commit 3e85598d99
2 changed files with 4 additions and 0 deletions
@@ -883,6 +883,8 @@ void GameObject::Update(uint32 diff)
{
m_Events.Update(diff);
WorldObject::Update(diff);
if (AI())
AI()->UpdateAI(diff);
else if (!AIM_Initialize())
+2
View File
@@ -452,6 +452,8 @@ void Unit::Update(uint32 p_time)
_UpdateSpells(p_time);
WorldObject::Update(p_time);
// If this is set during update SetCantProc(false) call is missing somewhere in the code
// Having this would prevent spells from being proced, so let's crash
ASSERT(!m_procDeep);