From b6270285f806b7f6d7c54d18ef8a190c1037bad1 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Fri, 9 Dec 2016 23:57:40 +0200 Subject: [PATCH] Fix cmangos tbc compile --- CreatureHooks.cpp | 2 +- GameObjectHooks.cpp | 2 +- LuaEngine.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CreatureHooks.cpp b/CreatureHooks.cpp index d14692c..b2bd2e8 100644 --- a/CreatureHooks.cpp +++ b/CreatureHooks.cpp @@ -62,7 +62,7 @@ bool Eluna::OnQuestReward(Player* pPlayer, Creature* pCreature, Quest const* pQu return CallAllFunctionsBool(CreatureEventBindings, CreatureUniqueBindings, entry_key, unique_key); } -uint32 Eluna::GetDialogStatus(Player* pPlayer, Creature* pCreature) +uint32 Eluna::GetDialogStatus(const Player* pPlayer, const Creature* pCreature) { START_HOOK_WITH_RETVAL(CREATURE_EVENT_ON_DIALOG_STATUS, pCreature, DIALOG_STATUS_SCRIPTED_NO_STATUS); Push(pPlayer); diff --git a/GameObjectHooks.cpp b/GameObjectHooks.cpp index c37d1e8..6da9300 100644 --- a/GameObjectHooks.cpp +++ b/GameObjectHooks.cpp @@ -68,7 +68,7 @@ bool Eluna::OnQuestReward(Player* pPlayer, GameObject* pGameObject, Quest const* return CallAllFunctionsBool(GameObjectEventBindings, key); } -uint32 Eluna::GetDialogStatus(Player* pPlayer, GameObject* pGameObject) +uint32 Eluna::GetDialogStatus(const Player* pPlayer, const GameObject* pGameObject) { START_HOOK_WITH_RETVAL(GAMEOBJECT_EVENT_ON_DIALOG_STATUS, pGameObject->GetEntry(), false); Push(pPlayer); diff --git a/LuaEngine.h b/LuaEngine.h index 9fcb650..83382d2 100644 --- a/LuaEngine.h +++ b/LuaEngine.h @@ -350,7 +350,7 @@ public: bool OnGossipSelectCode(Player* pPlayer, Creature* pCreature, uint32 sender, uint32 action, const char* code); bool OnQuestAccept(Player* pPlayer, Creature* pCreature, Quest const* pQuest); bool OnQuestReward(Player* pPlayer, Creature* pCreature, Quest const* pQuest, uint32 opt); - uint32 GetDialogStatus(Player* pPlayer, Creature* pCreature); + uint32 GetDialogStatus(const Player* pPlayer, const Creature* pCreature); bool OnSummoned(Creature* creature, Unit* summoner); bool UpdateAI(Creature* me, const uint32 diff); @@ -384,7 +384,7 @@ public: bool OnGossipSelectCode(Player* pPlayer, GameObject* pGameObject, uint32 sender, uint32 action, const char* code); bool OnQuestAccept(Player* pPlayer, GameObject* pGameObject, Quest const* pQuest); bool OnQuestReward(Player* pPlayer, GameObject* pGameObject, Quest const* pQuest, uint32 opt); - uint32 GetDialogStatus(Player* pPlayer, GameObject* pGameObject); + uint32 GetDialogStatus(const Player* pPlayer, const GameObject* pGameObject); #ifndef CLASSIC #ifndef TBC void OnDestroyed(GameObject* pGameObject, Player* pPlayer);