diff --git a/dlls/fakemeta/pev.cpp b/dlls/fakemeta/pev.cpp index 7bed7e3c..cc27af74 100755 --- a/dlls/fakemeta/pev.cpp +++ b/dlls/fakemeta/pev.cpp @@ -12,7 +12,7 @@ static cell AMX_NATIVE_CALL amx_pev(AMX *amx,cell *params) return 0; } } else { - if (index > gpGlobals->maxEntities || i<1) + if (index > gpGlobals->maxEntities || index < 1) { MF_RaiseAmxError(amx, AMX_ERR_NATIVE); return 0;