Fix ghost hitlist causing zone errors (closes #118)

Beware the wrath of PU_LEVEL
This commit is contained in:
GenericHeroGuy authored and Alug committed 2025-09-28 16:36:30 +02:00
1 parent ba83680260
commit 33147a188f
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}