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);
|
int count = *params/sizeof(cell);
|
||||||
if (count == 3) {
|
if (count == 3) {
|
||||||
int iValue = params[1];
|
cell *cVal = MF_GetAmxAddr(amx, params[1]);
|
||||||
|
int iValue = *cVal;
|
||||||
if (!is_ent_valid(iValue)) {
|
if (!is_ent_valid(iValue)) {
|
||||||
MF_RaiseAmxError(amx, AMX_ERR_NATIVE);
|
MF_RaiseAmxError(amx, AMX_ERR_NATIVE);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user