Skip to content

Commit

Permalink
This should be behind ifdef.
Browse files Browse the repository at this point in the history
  • Loading branch information
ratkosrb committed Apr 9, 2024
1 parent fe923fc commit 1d71bc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/game/WorldSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,10 @@ void WorldSession::LogoutPlayer(bool Save)
Map::DeleteFromWorld(_player);
}

#if SUPPORTED_CLIENT_BUILD > CLIENT_BUILD_1_8_4
m_movementPacketCompressor.ClearBuffer();
#endif

SetPlayer(nullptr); // deleted in Remove/DeleteFromWorld call

// Send the 'logout complete' packet to the client
Expand Down

0 comments on commit 1d71bc9

Please sign in to comment.