Move the ScrUnk21 zero-init below the bitstream; frame size now matches, buffer still 1 byte off

This commit is contained in:
ricardoofnl committed 2026-09-03 04:00:55 +07:00
1 parent 7404343b7e
commit 554f00d613
1 file changed
+3 -1
+3 -1
View File
@@ -377,10 +377,12 @@ void ScrUnk21(RPCParameters *rpcParams)
int iBitLength = rpcParams->numberOfBitsOfData;
PlayerID sender = rpcParams->sender;
char szName[33] = {0};
int iLen;
RakNet::BitStream bsData(Data,(iBitLength/8)+1,false);
char szName[33] = {0};
bsData.Read(szName, 32);
CPlayerPed *pPlayerPed = pGame->FindPlayerPed();