From 1af47512f6628fe571426c49c4c32b74471d5991 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Mon, 19 Aug 2024 21:40:01 +0800 Subject: [PATCH] [raknet] Match `RakPeer::UnregisterAsRemoteProcedureCall(...)` --- raknet/RakPeer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raknet/RakPeer.cpp b/raknet/RakPeer.cpp index f9cde5e..bfe98d9 100644 --- a/raknet/RakPeer.cpp +++ b/raknet/RakPeer.cpp @@ -1106,7 +1106,7 @@ void RakPeer::RegisterClassMemberRPC( char* uniqueID, void *functionPointer ) // -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- void RakPeer::UnregisterAsRemoteProcedureCall( char* uniqueID ) { - if ( uniqueID == 0 || uniqueID[ 0 ] == 0 ) + /*if ( uniqueID == 0 || uniqueID[ 0 ] == 0 ) return; // Don't call this while running because if you remove RPCs and add them they will not match the indices on the other systems anymore @@ -1117,7 +1117,7 @@ void RakPeer::UnregisterAsRemoteProcedureCall( char* uniqueID ) rpcMap.RemoveNode(uniqueID); - /* + char uppercaseUniqueID[ 256 ]; strcpy( uppercaseUniqueID, uniqueID );