From 768ea7519ffe347dbc487e965d46d5e958fb4b49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johnny=20Bergstr=C3=B6m?= Date: Sat, 18 Sep 2004 13:14:20 +0000 Subject: [PATCH] get_info_keybuffer() now works in client_authorized --- dlls/engine/engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/engine/engine.cpp b/dlls/engine/engine.cpp index 1ad9f24f..40ed4673 100755 --- a/dlls/engine/engine.cpp +++ b/dlls/engine/engine.cpp @@ -369,7 +369,7 @@ static cell AMX_NATIVE_CALL get_info_keybuffer(AMX *amx, cell *params) { int iEnt = params[1]; - if (!is_ent_valid(iEnt)) { + if (FNullEnt(iEnt) || iEnt < 1 || iEnt > gpGlobals->maxClients) { EngineError(amx, "Invalid Entity %d", iEnt); return 0; }