Fixed entity_set_edict

This commit is contained in:
Johnny Bergström 2004-10-14 08:15:41 +00:00
parent c29a7d34e5
commit 3efa25a5fb

View File

@ -1101,7 +1101,8 @@ static cell AMX_NATIVE_CALL entity_set_edict(AMX *amx, cell *params)
int iSetEnt = params[3];
CHECK_ENTITY(iEnt);
CHECK_ENTITY(iSetEnt);
if (iSetEnt != 0)
CHECK_ENTITY(iSetEnt);
edict_t *pEnt = INDEXENT2(iEnt);
edict_t *pSetEnt = INDEXENT2(iSetEnt);