From 3efa25a5fbe5a3b65de1c8d1dce525a62a0b0cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johnny=20Bergstr=C3=B6m?= Date: Thu, 14 Oct 2004 08:15:41 +0000 Subject: [PATCH] Fixed entity_set_edict --- dlls/engine/entity.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);