diff --git a/src/game/Server/WorldSession.h b/src/game/Server/WorldSession.h index 06a7fe199ee..14ca0f31e77 100644 --- a/src/game/Server/WorldSession.h +++ b/src/game/Server/WorldSession.h @@ -385,7 +385,7 @@ class WorldSession void SendTradeStatus(const TradeStatusInfo& status) const; void SendUpdateTrade(bool trader_state = true) const; - void SendCancelTrade(TradeStatus status); + void SendCancelTrade(TradeStatus status) const; void SendPetitionQueryOpcode(ObjectGuid petitionguid) const; diff --git a/src/game/Trade/TradeHandler.cpp b/src/game/Trade/TradeHandler.cpp index 4a6e9c776fa..91810998e40 100644 --- a/src/game/Trade/TradeHandler.cpp +++ b/src/game/Trade/TradeHandler.cpp @@ -528,7 +528,7 @@ void WorldSession::HandleBeginTradeOpcode(WorldPacket& /*recvPacket*/) SendTradeStatus(info); } -void WorldSession::SendCancelTrade(TradeStatus status) +void WorldSession::SendCancelTrade(TradeStatus status) const { if (m_playerRecentlyLogout) return;