From c5aae0d8aad0a2c6ef237329588fdde491347ef6 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 23 Jul 2005 07:07:41 +0000 Subject: [PATCH] little bug fix --- dlls/engine/entity.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/engine/entity.cpp b/dlls/engine/entity.cpp index 977a109a..31c5a0b0 100755 --- a/dlls/engine/entity.cpp +++ b/dlls/engine/entity.cpp @@ -1098,6 +1098,8 @@ static cell AMX_NATIVE_CALL entity_set_edict(AMX *amx, cell *params) int idx = params[2]; int iSetEnt = params[3]; + CHECK_ENTITY(iEnt); + edict_t *pEnt = INDEXENT2(iEnt); edict_t *pSetEnt = INDEXENT2(iSetEnt);