Fixed bug reported by JJKiller

This commit is contained in:
David Anderson 2004-09-12 00:13:46 +00:00
parent 7f6e9f5e20
commit f2faf990a0
2 changed files with 3 additions and 3 deletions

View File

@ -59,4 +59,4 @@ AMX_NATIVE_INFO pdata_natives[] = {
{ "get_pdata_float", get_pdata_float },
{ "set_pdata_float", set_pdata_float },
{ NULL, NULL }
};
};

View File

@ -4,7 +4,7 @@
static cell AMX_NATIVE_CALL amx_pev(AMX *amx,cell *params)
{
int index=params[1];
if (index >= 1 && index <= 32)
if (index >= 1 && index <= gpGlobalx->maxClients)
{
if (!MF_IsPlayerIngame(index))
{
@ -1091,4 +1091,4 @@ AMX_NATIVE_INFO pev_natives[] = {
{ "pev", amx_pev },
{ "set_pev", amx_set_pev },
{NULL, NULL},
};
};