mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 19:53: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:
@@ -86,6 +86,7 @@ public:
|
||||
void FUNC_100B7840(int a1); // .text:100B7840
|
||||
void FUNC_100B81A0(); // .text:100B81A0
|
||||
void FUNC_100B81F0(); // .text:100B81F0
|
||||
void FUNC_100B8150(char *szText); // .text:100B8150
|
||||
|
||||
BOOL FUNC_100B7460(); // .text:100B7460
|
||||
BOOL FUNC_100B7E00(); // .text:100B7E00
|
||||
|
||||
@@ -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