Core/Session: Fixed error "received unexpected opcode CMSG_CANCEL_TRADE" when a player is logging out.

This commit is contained in:
kaelima
2012-05-26 18:15:07 +02:00
parent 5956eb9ae2
commit 624aab7d77
4 changed files with 19 additions and 21 deletions
+1 -1
View File
@@ -531,7 +531,7 @@ void WorldSession::HandleBeginTradeOpcode(WorldPacket& /*recvPacket*/)
void WorldSession::SendCancelTrade()
{
if (m_playerRecentlyLogout)
if (PlayerRecentlyLoggedOut() || PlayerLogout())
return;
SendTradeStatus(TRADE_STATUS_TRADE_CANCELED);