get_info_keybuffer() now works in client_authorized

This commit is contained in:
Johnny Bergström 2004-09-18 13:14:20 +00:00
parent 3eed3b7f07
commit 768ea7519f

View File

@ -369,7 +369,7 @@ static cell AMX_NATIVE_CALL get_info_keybuffer(AMX *amx, cell *params)
{ {
int iEnt = params[1]; int iEnt = params[1];
if (!is_ent_valid(iEnt)) { if (FNullEnt(iEnt) || iEnt < 1 || iEnt > gpGlobals->maxClients) {
EngineError(amx, "Invalid Entity %d", iEnt); EngineError(amx, "Invalid Entity %d", iEnt);
return 0; return 0;
} }