mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 11:43:04 +08:00
[saco] Implement/match ScrUnk7B; zeroing the 33-byte buffer with memset gives eight aligned dwords plus a trailing byte, an = {0} initializer does not
This commit is contained in:
@@ -195,13 +195,14 @@ void ScrUnk7B(RPCParameters *rpcParams)
|
||||
|
||||
VEHICLEID vehicleId;
|
||||
BYTE byteLen;
|
||||
char szText[33];
|
||||
|
||||
RakNet::BitStream bsData(Data,(iBitLength/8)+1,false);
|
||||
|
||||
char szText[33] = {0};
|
||||
|
||||
byteLen = 0;
|
||||
|
||||
memset(szText, 0, sizeof(szText));
|
||||
|
||||
bsData.Read(vehicleId);
|
||||
bsData.Read(byteLen);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user