From 915b7ae6b70a5816f87f60ae98378fbbaaa634d7 Mon Sep 17 00:00:00 2001 From: xezon <4720891+xezon@users.noreply.github.com> Date: Thu, 19 Feb 2026 22:07:24 +0100 Subject: [PATCH] fix(netpacket): Fix incorrect improbable return value in NetPacket::GetBufferSizeNeededForCommand() --- Core/GameEngine/Source/GameNetwork/NetPacket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/GameEngine/Source/GameNetwork/NetPacket.cpp b/Core/GameEngine/Source/GameNetwork/NetPacket.cpp index 66546da7190..3d4315f7f2d 100644 --- a/Core/GameEngine/Source/GameNetwork/NetPacket.cpp +++ b/Core/GameEngine/Source/GameNetwork/NetPacket.cpp @@ -276,7 +276,7 @@ UnsignedInt NetPacket::GetBufferSizeNeededForCommand(NetCommandMsg *msg) { // This is where the fun begins... if (msg == nullptr) { - return TRUE; // There was nothing to add, so it was successful. + return 0; // There was nothing to add. } // Use the virtual function for all command message types return msg->getPackedByteCount();