2
0
mirror of https://github.com/rehlds/reapi.git synced 2025-01-16 00:28:17 +03:00

Fix crash rg_get_iteminfo

This commit is contained in:
s1lent 2017-12-07 16:46:37 +07:00
parent 3b4deb15dc
commit c796cbf134
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -2035,7 +2035,7 @@ cell AMX_NATIVE_CALL rg_get_iteminfo(AMX *amx, cell *params)
}
cell *dest = getAmxAddr(amx, params[arg_output]);
size_t length = *getAmxAddr(amx, params[arg_length]);
size_t length = (PARAMS_COUNT == 4) ? *getAmxAddr(amx, params[arg_length]) : 0;
switch (type)
{