From cc1863f501fb92d70d3abebeea944c08372b5df0 Mon Sep 17 00:00:00 2001 From: dashodanger Date: Sun, 8 Oct 2023 09:35:43 -0600 Subject: [PATCH] Push fix for pic-based intermission CTD --- source_files/edge/f_finale.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source_files/edge/f_finale.cc b/source_files/edge/f_finale.cc index 9ae154825..17e48c5e3 100644 --- a/source_files/edge/f_finale.cc +++ b/source_files/edge/f_finale.cc @@ -932,7 +932,7 @@ void F_Drawer(void) case f_pic: { - const image_c *image = W_ImageLookup(finale->pics[picnum].c_str()); + const image_c *image = W_ImageLookup(finale->pics[MIN(picnum, finale->pics.size()-1)].c_str()); if (r_titlescaling.d == 2) // Stretch HUD_StretchImage(hud_x_left, 0, hud_x_right-hud_x_left, 200, image, 0, 0); else