From 76684e68c206e6378a7dcd9cb9b7fb5cf5bf7730 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 15 Aug 2004 06:20:01 +0000 Subject: [PATCH] Fixed parameter bug --- dlls/engine/entity.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/engine/entity.cpp b/dlls/engine/entity.cpp index d5dfa156..11670e7a 100755 --- a/dlls/engine/entity.cpp +++ b/dlls/engine/entity.cpp @@ -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;