Skip to content

Commit

Permalink
Push fix for pic-based intermission CTD
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed Oct 8, 2023
1 parent b0879e0 commit cc1863f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source_files/edge/f_finale.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc1863f

Please sign in to comment.