From 621faf368e0216305ed1589117f7ef1b1bfb44b7 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sun, 30 Oct 2016 18:07:23 +0200 Subject: [PATCH] Fix server crash caused by invalid player GUIDs, 2nd attempt --- apps/openmw-mp/Networking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index 08a7a5be4..d9b869930 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -715,7 +715,7 @@ void Networking::NewPlayer(RakNet::RakNetGUID guid) if (pl->first == guid.g) continue; // If an invalid key makes it into the Players map, ignore it - else if (pl->first == RakNet::UNASSIGNED_NETWORK_ID) continue; + else if (pl->first == -1) continue; playerController->GetPacket(ID_GAME_BASE_INFO)->Send(pl->second, guid); playerController->GetPacket(ID_GAME_DYNAMICSTATS)->Send(pl->second, guid);