Core/OutdoorPvP: Pass GossipMenuItems to CanTalkTo hook by reference

This commit is contained in:
Shauren
2011-05-26 23:33:05 +02:00
parent a644206f88
commit 00f6164a68
6 changed files with 9 additions and 9 deletions

View File

@@ -326,7 +326,7 @@ void OPvPCapturePointZM_GraveYard::SetBeaconState(uint32 controlling_faction)
UpdateTowerState();
}
bool OPvPCapturePointZM_GraveYard::CanTalkTo(Player * plr, Creature * c, GossipMenuItems /*gso*/)
bool OPvPCapturePointZM_GraveYard::CanTalkTo(Player * plr, Creature * c, GossipMenuItems const& /*gso*/)
{
uint64 guid = c->GetGUID();
std::map<uint64, uint32>::iterator itr = m_CreatureTypes.find(guid);

View File

@@ -223,7 +223,7 @@ class OPvPCapturePointZM_GraveYard : public OPvPCapturePoint
bool HandleDropFlag(Player * plr, uint32 spellId);
bool CanTalkTo(Player * plr, Creature * c, GossipMenuItems gso);
bool CanTalkTo(Player * plr, Creature * c, GossipMenuItems const& gso);
private: