Skip to content

Commit

Permalink
Player: Mark SendCancelTrade as const
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Jan 13, 2024
1 parent 48f76f3 commit 590c539
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/Server/WorldSession.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/game/Trade/TradeHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 590c539

Please sign in to comment.