From e2359b01ea7ae97cc9cd4b56a8b379342115730d Mon Sep 17 00:00:00 2001 From: Koncord Date: Thu, 17 Nov 2016 13:02:24 +0800 Subject: [PATCH] Use constant instead magic value --- 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 1ff32d694..af21e942b 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 == -1) continue; + else if (pl->first == RakNet::UNASSIGNED_RAKNET_GUID.g) continue; // If we are iterating over a player who has inputted their name, proceed else if (pl->second->getLoadState() == Player::POSTLOADED)