From f182b357d2f40bf486308fb655db722236a6ac98 Mon Sep 17 00:00:00 2001 From: Ian Clarkson Date: Fri, 26 Feb 2021 20:42:55 -0800 Subject: [PATCH] Fix compile error on Linux ``` error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (GetConnectionByGUID(participantListIn[index], worldId)==false) ^~~~~ ``` --- Source/ReplicaManager3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ReplicaManager3.cpp b/Source/ReplicaManager3.cpp index ba79c498a..c0c7e6e71 100644 --- a/Source/ReplicaManager3.cpp +++ b/Source/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)