From 20e17ef5a13c1bea32348df170df400ea094db07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sun, 14 Jul 2019 22:37:28 +0200 Subject: [PATCH] Fix the value checked for in RakNet The return type of GetConnectionByGUID is a pointer --- external/sources/RakNet/ReplicaManager3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/sources/RakNet/ReplicaManager3.cpp b/external/sources/RakNet/ReplicaManager3.cpp index f67831cae..bd3a3f735 100644 --- a/external/sources/RakNet/ReplicaManager3.cpp +++ b/external/sources/RakNet/ReplicaManager3.cpp @@ -138,7 +138,7 @@ void ReplicaManager3::AutoCreateConnectionList( { for (unsigned int index=0; index < participantListIn.Size(); index++) { - if (GetConnectionByGUID(participantListIn[index], worldId)==false) + if (GetConnectionByGUID(participantListIn[index], worldId) == nullptr) { Connection_RM3 *connection = AllocConnection(rakPeerInterface->GetSystemAddressFromGuid(participantListIn[index]), participantListIn[index]); if (connection)