Fixed parameter bug

This commit is contained in:
David Anderson 2004-08-15 06:20:01 +00:00
parent c032415d35
commit 76684e68c2

View File

@ -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;