From cfcd6e9ac96408f0e028cb25cb2129b262e77d7e Mon Sep 17 00:00:00 2001 From: Arkshine Date: Sat, 25 Oct 2014 11:08:31 +0200 Subject: [PATCH] Allow find_ent_by_owner native to work in client_disconnect forward --- 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 f5bff2c5..c1f76491 100755 --- a/dlls/engine/entity.cpp +++ b/dlls/engine/entity.cpp @@ -1477,7 +1477,7 @@ static cell AMX_NATIVE_CALL find_ent_by_owner(AMX *amx, cell *params) // native int iEnt = params[1]; int oEnt = params[3]; // Check index to start searching at, 0 must be possible for iEnt. - CHECK_ENTITY(oEnt); + CHECK_ENTITY_SIMPLE(oEnt); edict_t *pEnt = INDEXENT2(iEnt); edict_t *entOwner = INDEXENT2(oEnt);