From 097f38d59452dd28578cfab0d2488666d7a1a26b Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 27 Jul 2001 23:22:21 +0000 Subject: [PATCH] return a null edict properly --- qw/source/sv_pr_cmds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qw/source/sv_pr_cmds.c b/qw/source/sv_pr_cmds.c index 2b5cc4efb..ecccaaaec 100644 --- a/qw/source/sv_pr_cmds.c +++ b/qw/source/sv_pr_cmds.c @@ -1809,7 +1809,8 @@ static void PF_testentitypos (progs_t *pr) { edict_t *ent = G_EDICT (pr, OFS_PARM0); - RETURN_EDICT (pr, SV_TestEntityPosition (ent)); + ent = SV_TestEntityPosition (ent); + RETURN_EDICT (pr, ent ? ent : sv.edicts); }