mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-27 07:15:37 +03:00
Cstrike: cs_get_hostage_id - Fix error check, an hostage can't be a player
This commit is contained in:
parent
b82588f081
commit
27d6a0cc08
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user