From 16f51ea6194c49ddc8e6cc06a3a49b9bcfd913a2 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 12 Sep 2004 00:32:11 +0000 Subject: [PATCH] *** empty log message *** --- dlls/fakemeta/pev.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/fakemeta/pev.cpp b/dlls/fakemeta/pev.cpp index e3745142..7bed7e3c 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) + if (index > gpGlobals->maxEntities || i<1) { MF_RaiseAmxError(amx, AMX_ERR_NATIVE); return 0;