From 73f04d04a6a410c760f9e3d13e498e224ff0775a Mon Sep 17 00:00:00 2001 From: chanseulkim <31463944+chanseulkim@users.noreply.github.com> Date: Fri, 1 Oct 2021 15:58:46 +0900 Subject: [PATCH] forbids comparison between pointer and integer --- Source/ReplicaManager3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ReplicaManager3.cpp b/Source/ReplicaManager3.cpp index ba79c498a..562ad6524 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)) { Connection_RM3 *connection = AllocConnection(rakPeerInterface->GetSystemAddressFromGuid(participantListIn[index]), participantListIn[index]); if (connection)