mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Core/OutdoorPvP: Pass GossipMenuItems to CanTalkTo hook by reference
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user