From 4c5d34e82c0a275fd76dfcc8ae61e4899d336344 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 21 Oct 2025 16:09:02 +0200 Subject: [PATCH] Revert "Fix ghost hitlist causing zone errors (closes #118)" This reverts commit ab13b2810669a77e6e1c5f06189a93c71b8448ec. --- 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 4b63a1578..6b2c8f1c9 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++; - Z_Realloc(ghostext[playernum].hitlist, ghostext[playernum].hits * sizeof(mobj_t *), PU_STATIC, &ghostext[playernum].hitlist); + ghostext[playernum].hitlist = Z_Realloc(ghostext[playernum].hitlist, ghostext[playernum].hits * sizeof(mobj_t *), PU_LEVEL, &ghostext[playernum].hitlist); P_SetTarget(ghostext[playernum].hitlist + (ghostext[playernum].hits-1), victim); }