diff --git a/GameObjectHooks.cpp b/GameObjectHooks.cpp index 6da9300..29b1da3 100644 --- a/GameObjectHooks.cpp +++ b/GameObjectHooks.cpp @@ -42,8 +42,8 @@ bool Eluna::OnDummyEffect(Unit* pCaster, uint32 spellId, SpellEffIndex effIndex, void Eluna::UpdateAI(GameObject* pGameObject, uint32 diff) { - START_HOOK(GAMEOBJECT_EVENT_ON_AIUPDATE, pGameObject->GetEntry()); pGameObject->elunaEvents->Update(diff); + START_HOOK(GAMEOBJECT_EVENT_ON_AIUPDATE, pGameObject->GetEntry()); Push(pGameObject); Push(diff); CallAllFunctions(GameObjectEventBindings, key);