From ce74717d230f631c4faa574f335ad1296425882c Mon Sep 17 00:00:00 2001 From: Siepert123 Date: Thu, 5 Mar 2026 07:43:33 +0100 Subject: [PATCH] why oh why --- .../Common/Network/PlatformNetworkManagerStub.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Minecraft.Client/Common/Network/PlatformNetworkManagerStub.cpp b/Minecraft.Client/Common/Network/PlatformNetworkManagerStub.cpp index 0133819e6..3341123c5 100644 --- a/Minecraft.Client/Common/Network/PlatformNetworkManagerStub.cpp +++ b/Minecraft.Client/Common/Network/PlatformNetworkManagerStub.cpp @@ -748,7 +748,6 @@ void CPlatformNetworkManagerStub::SearchForGames() if (file) { allocatedServers = new vector; - string line; wstring wline; int phase = 0; @@ -758,16 +757,17 @@ void CPlatformNetworkManagerStub::SearchForGames() char buffer[512]; while (std::fgets(buffer, sizeof(buffer), file)) { - wline = convStringToWstring(buffer); if (phase == 0) { - ip = line; + ip = buffer; phase = 1; } else if (phase == 1) { + wline = convStringToWstring(buffer); port = wline; phase = 2; } else if (phase == 2) { + wline = convStringToWstring(buffer); name = wline; phase = 0;