Permalink
Browse files

Fix cmangos tbc compile

  • Loading branch information...
1 parent 4cd1c60 commit b6270285f806b7f6d7c54d18ef8a190c1037bad1 @Rochet2 Rochet2 committed Dec 9, 2016
Showing with 4 additions and 4 deletions.
  1. +1 −1 CreatureHooks.cpp
  2. +1 −1 GameObjectHooks.cpp
  3. +2 −2 LuaEngine.h
View
@@ -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);
View
@@ -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);
View
@@ -350,7 +350,7 @@ class TC_GAME_API Eluna
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 @@ class TC_GAME_API Eluna
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);

0 comments on commit b627028

Please sign in to comment.