Fixed parameter bug
This commit is contained in:
parent
c032415d35
commit
76684e68c2
@ -137,7 +137,8 @@ static cell AMX_NATIVE_CALL DispatchKeyValue(AMX *amx, cell *params)
|
||||
{
|
||||
int count = *params/sizeof(cell);
|
||||
if (count == 3) {
|
||||
int iValue = params[1];
|
||||
cell *cVal = MF_GetAmxAddr(amx, params[1]);
|
||||
int iValue = *cVal;
|
||||
if (!is_ent_valid(iValue)) {
|
||||
MF_RaiseAmxError(amx, AMX_ERR_NATIVE);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user