diff --git a/modules/engine/engine.h b/modules/engine/engine.h index 2ea243d8..e48d93bc 100644 --- a/modules/engine/engine.h +++ b/modules/engine/engine.h @@ -204,7 +204,7 @@ void StartFrame_Post(); MF_LogError(amx, AMX_ERR_NATIVE, "Entity out of range (%d)", x); \ return 0; \ } else { \ - if (x <= gpGlobals->maxClients) { \ + if (x > 0 && x <= gpGlobals->maxClients) { \ if (!MF_IsPlayerIngame(x)) { \ MF_LogError(amx, AMX_ERR_NATIVE, "Invalid player %d (not in-game)", x); \ return 0; \