From df43d897dfb54e2e1e2dbae947932ea78587a267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johnny=20Bergstr=C3=B6m?= Date: Wed, 29 Sep 2004 06:17:44 +0000 Subject: [PATCH] Fioxed call_think: if (!is_ent_valid(iEnt)) { EngineError(amx, "Invalid Entity %d", iEnt); return 0; } was if (is_ent_valid(iEnt)) { EngineError(amx, "Invalid Entity %d", iEnt); return 0; } --- dlls/engine/entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/engine/entity.cpp b/dlls/engine/entity.cpp index 9b51df6b..afb3b891 100755 --- a/dlls/engine/entity.cpp +++ b/dlls/engine/entity.cpp @@ -47,7 +47,7 @@ static cell AMX_NATIVE_CALL call_think(AMX *amx, cell *params) { int iEnt = params[1]; - if (is_ent_valid(iEnt)) { + if (!is_ent_valid(iEnt)) { EngineError(amx, "Invalid Entity %d", iEnt); return 0; }