diff --git a/HookMgr.cpp b/HookMgr.cpp index 8c431cc..7c59efb 100644 --- a/HookMgr.cpp +++ b/HookMgr.cpp @@ -1835,7 +1835,7 @@ bool Eluna::OnQuestComplete(Player* pPlayer, GameObject* pGameObject, Quest cons void Eluna::UpdateAI(GameObject* pGameObject, uint32 diff) { - pGameObject->elunaEvents.Update(diff); + pGameObject->elunaEvents->Update(diff); ENTRY_BEGIN(GameObjectEventBindings, pGameObject->GetEntry(), GAMEOBJECT_EVENT_ON_AIUPDATE, return); Push(L, pGameObject); Push(L, diff); diff --git a/WorldObjectMethods.h b/WorldObjectMethods.h index 086adfa..94c91d1 100644 --- a/WorldObjectMethods.h +++ b/WorldObjectMethods.h @@ -655,7 +655,7 @@ namespace LuaWorldObject int functionRef = luaL_ref(L, LUA_REGISTRYINDEX); if (functionRef != LUA_REFNIL && functionRef != LUA_NOREF) { - obj->elunaEvents.AddEvent(functionRef, delay, repeats); + obj->elunaEvents->AddEvent(functionRef, delay, repeats); Eluna::Push(L, functionRef); } return 1; @@ -669,7 +669,7 @@ namespace LuaWorldObject int RemoveEventById(lua_State* L, WorldObject* obj) { int eventId = Eluna::CHECKVAL(L, 2); - obj->elunaEvents.RemoveEvent(eventId); + obj->elunaEvents->RemoveEvent(eventId); return 0; } @@ -679,7 +679,7 @@ namespace LuaWorldObject */ int RemoveEvents(lua_State* /*L*/, WorldObject* obj) { - obj->elunaEvents.RemoveEvents(); + obj->elunaEvents->RemoveEvents(); return 0; } };