diff --git a/Source/Client/Mode/GameModePackets.cpp b/Source/Client/Mode/GameModePackets.cpp index 444179009..f72628cbf 100644 --- a/Source/Client/Mode/GameModePackets.cpp +++ b/Source/Client/Mode/GameModePackets.cpp @@ -1933,13 +1933,12 @@ void CGameMode::ReceiveWhisperResult(unsigned char kind, int argument) { // OFFSET: 0x00D08390 // FUNCTION: fn_21588 void CGameMode::ReceiveChangeZoneServerWithHost(const unsigned char* packet) { - const int x = *reinterpret_cast(packet + 0x12); - const int y = *reinterpret_cast(packet + 0x14); - const int ip = *reinterpret_cast(packet + 0x16); const int port = *reinterpret_cast(packet + 0x1A); + const int ip = *reinterpret_cast(packet + 0x16); + const int y = *reinterpret_cast(packet + 0x14); + const int x = *reinterpret_cast(packet + 0x12); const std::string host(reinterpret_cast(packet + 0x1C), reinterpret_cast(packet + 0x9C)); - const std::string mapName(reinterpret_cast(packet + 2), reinterpret_cast(packet + 0x12)); - this->ChangeZoneServer(mapName.c_str(), x, y, ip, port, host.c_str()); + this->ChangeZoneServer(std::string(reinterpret_cast(packet + 2), reinterpret_cast(packet + 0x12)).c_str(), x, y, ip, port, host.c_str()); } // OFFSET: 0x00D08110