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:
parent
d380c3a834
commit
d3822cd7a5
1 changed files with 1 additions and 0 deletions
|
|
@ -8893,6 +8893,7 @@ boolean P_LoadLevel(boolean fromnetsave, boolean reloadinggamestate)
|
||||||
HWR_ClearAllTextures();
|
HWR_ClearAllTextures();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
G_FreeGhosts(); // ghosts are allocated with PU_LEVEL
|
||||||
Patch_FreeTag(PU_PATCH_LOWPRIORITY);
|
Patch_FreeTag(PU_PATCH_LOWPRIORITY);
|
||||||
Patch_FreeTag(PU_PATCH_ROTATED);
|
Patch_FreeTag(PU_PATCH_ROTATED);
|
||||||
Z_FreeTags(PU_LEVEL, PU_PURGELEVEL - 1);
|
Z_FreeTags(PU_LEVEL, PU_PURGELEVEL - 1);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue