Merge pull request #152 from Arkshine/improve-find_ent_by_owner

Allow find_ent_by_owner native to work in client_disconnect forward
This commit is contained in:
Vincent Herbet 2014-10-26 13:06:55 +01:00
commit 6e60b596d7

View File

@ -1477,7 +1477,7 @@ static cell AMX_NATIVE_CALL find_ent_by_owner(AMX *amx, cell *params) // native
int iEnt = params[1]; int iEnt = params[1];
int oEnt = params[3]; int oEnt = params[3];
// Check index to start searching at, 0 must be possible for iEnt. // 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 *pEnt = INDEXENT2(iEnt);
edict_t *entOwner = INDEXENT2(oEnt); edict_t *entOwner = INDEXENT2(oEnt);