Skip to content

Commit 38d4e08

Browse files
ShaurenOvahlord
authored andcommitted
Core/Objects: Call base class Update function for Unit and GameObject (currently does nothing)
(cherry picked from commit 3e85598)
1 parent 8336128 commit 38d4e08

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/server/game/Entities/GameObject/GameObject.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,8 @@ void GameObject::Update(uint32 diff)
454454
{
455455
m_Events.Update(diff);
456456

457+
WorldObject::Update(diff);
458+
457459
if (AI())
458460
AI()->UpdateAI(diff);
459461
else if (!AIM_Initialize())

src/server/game/Entities/Unit/Unit.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,8 @@ void Unit::Update(uint32 p_time)
443443

444444
_UpdateSpells(p_time);
445445

446+
WorldObject::Update(p_time);
447+
446448
// If this is set during update SetCantProc(false) call is missing somewhere in the code
447449
// Having this would prevent spells from being proced, so let's crash
448450
ASSERT(!m_procDeep);

0 commit comments

Comments
 (0)