From 1d71bc9c6cfc96b85aebb1b1071193863f1bebec Mon Sep 17 00:00:00 2001 From: ratkosrb Date: Tue, 9 Apr 2024 17:02:02 +0300 Subject: [PATCH] This should be behind ifdef. --- src/game/WorldSession.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/WorldSession.cpp b/src/game/WorldSession.cpp index 13520ae897d..ada0e587fac 100644 --- a/src/game/WorldSession.cpp +++ b/src/game/WorldSession.cpp @@ -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