diff --git a/dlls/engine/entity.cpp b/dlls/engine/entity.cpp index cd437374..d546993d 100755 --- a/dlls/engine/entity.cpp +++ b/dlls/engine/entity.cpp @@ -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);