Cstrike: cs_get_hostage_id - Fix error check, an hostage can't be a player

This commit is contained in:
Arkshine 2015-07-04 16:28:24 +02:00
parent b82588f081
commit 27d6a0cc08

View File

@ -124,8 +124,8 @@ static cell AMX_NATIVE_CALL cs_get_hostage_id(AMX *amx, cell *params)
int index = params[1];
CHECK_ENTITY(index);
edict_t *pHostage = GETEDICT(index);
CHECK_NONPLAYER(index);
edict_t *pHostage = INDEXENT(index);
if (strcmp(STRING(pHostage->v.classname), "hostage_entity") != 0)
{