mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'fix-map-command-ghost-crash' into 'master'
Free ghosts when level data is freed Closes #1163 See merge request KartKrew/Kart!2108
This commit is contained in:
commit
78f55003b5
1 changed files with 1 additions and 0 deletions
|
|
@ -8561,6 +8561,7 @@ boolean P_LoadLevel(boolean fromnetsave, boolean reloadinggamestate)
|
|||
HWR_ClearAllTextures();
|
||||
#endif
|
||||
|
||||
G_FreeGhosts(); // ghosts are allocated with PU_LEVEL
|
||||
Patch_FreeTag(PU_PATCH_LOWPRIORITY);
|
||||
Patch_FreeTag(PU_PATCH_ROTATED);
|
||||
Z_FreeTags(PU_LEVEL, PU_PURGELEVEL - 1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue