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

This commit is contained in:
ricardoofnl
2026-09-03 03:59:09 +07:00
parent 7404343b7e
commit 554f00d613
+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();