From 33147a188fe2fbb7b8a2a86a2725ce68ad6808dd Mon Sep 17 00:00:00 2001 From: GenericHeroGuy Date: Thu, 18 Sep 2025 21:19:06 +0200 Subject: [PATCH] Fix ghost hitlist causing zone errors (closes #118) Beware the wrath of PU_LEVEL --- src/g_demo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_demo.c b/src/g_demo.c index 20d40d5bf..87ae0b61f 100644 --- a/src/g_demo.c +++ b/src/g_demo.c @@ -630,7 +630,7 @@ void G_GhostAddHit(INT32 playernum, mobj_t *victim) ghostext[playernum].flags |= EZT_HIT; ghostext[playernum].hits++; - ghostext[playernum].hitlist = Z_Realloc(ghostext[playernum].hitlist, ghostext[playernum].hits * sizeof(mobj_t *), PU_LEVEL, &ghostext[playernum].hitlist); + Z_Realloc(ghostext[playernum].hitlist, ghostext[playernum].hits * sizeof(mobj_t *), PU_STATIC, &ghostext[playernum].hitlist); P_SetTarget(ghostext[playernum].hitlist + (ghostext[playernum].hits-1), victim); }