From 19403d28890ba1180cc0e233e8f35fbd270653dd Mon Sep 17 00:00:00 2001 From: Ashnal Date: Thu, 27 Oct 2022 20:28:14 -0400 Subject: [PATCH] Ensure skin index read from replay file is within numskins before drawing face --- src/m_menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m_menu.c b/src/m_menu.c index b657d1c9..367df794 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -5580,7 +5580,7 @@ static void DrawReplayHutReplayInfo(void) } // Character face! - if (W_CheckNumForName(skins[demolist[dir_on[menudepthleft]].standings[0].skin].facewant) != LUMPERROR) + if (demolist[dir_on[menudepthleft]].standings[0].skin < numskins && W_CheckNumForName(skins[demolist[dir_on[menudepthleft]].standings[0].skin].facewant) != LUMPERROR) { patch = facewantprefix[demolist[dir_on[menudepthleft]].standings[0].skin]; colormap = R_GetTranslationColormap(