Consistency: Replace GETEDICT with HLTypeConversion in core

This commit is contained in:
Arkshine
2015-10-07 22:31:01 +02:00
parent b65a0600ee
commit 9bee1f7edf
7 changed files with 13 additions and 8 deletions

View File

@ -83,7 +83,7 @@ static cell AMX_NATIVE_CALL emit_sound(AMX *amx, cell *params) /* 7 param */
EMIT_SOUND_DYN2(pPlayer->pEdict, channel, szSample, vol, att, flags, pitch);
}
} else {
edict_t* pEdict = GETEDICT(params[1]);
edict_t* pEdict = TypeConversion.id_to_edict(params[1]);
if (!FNullEnt(pEdict))
EMIT_SOUND_DYN2(pEdict, channel, szSample, vol, att, flags, pitch);