diff --git a/src/game/Server/WorldSession.h b/src/game/Server/WorldSession.h index 07af438dc4..f95fec9418 100644 --- a/src/game/Server/WorldSession.h +++ b/src/game/Server/WorldSession.h @@ -349,7 +349,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 a3cc3fb1c5..fd4b34762e 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;