mirror of
https://github.com/rehlds/reapi.git
synced 2025-02-06 02:30:30 +03:00
Fix crash rg_get_iteminfo
This commit is contained in:
parent
3b4deb15dc
commit
c796cbf134
@ -2035,7 +2035,7 @@ cell AMX_NATIVE_CALL rg_get_iteminfo(AMX *amx, cell *params)
|
|||||||
}
|
}
|
||||||
|
|
||||||
cell *dest = getAmxAddr(amx, params[arg_output]);
|
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)
|
switch (type)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user