check for finaleflat availability before calling V_DrawBackground()

Fixes a crash in the MAP06->MAP07 transition in PUSS33_DIEROWDY.wad
This commit is contained in:
Fabian Greffrath 2024-05-07 11:04:24 +02:00
parent badfd4ee9d
commit 4a9abfacd2

View File

@ -388,7 +388,7 @@ void F_TextWrite (void)
{ {
V_DrawPatchFullScreen(W_CacheLumpName(finaleflat, PU_LEVEL)); V_DrawPatchFullScreen(W_CacheLumpName(finaleflat, PU_LEVEL));
} }
else else if ((W_CheckNumForName)(finaleflat, ns_flats) != -1)
{ {
// erase the entire screen to a tiled background // erase the entire screen to a tiled background