mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
return a null edict properly
This commit is contained in:
parent
ceadc2482c
commit
097f38d594
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue