From acea0c54d961ba0987445e9c73a0f31a5a227807 Mon Sep 17 00:00:00 2001 From: apartfromtime <42292382+apartfromtime@users.noreply.github.com> Date: Sat, 13 Aug 2022 10:09:05 +1000 Subject: [PATCH] Remove player skin box bounds check introduced in #866 Failure produces black screen. --- src/client/menu/menu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/client/menu/menu.c b/src/client/menu/menu.c index 16f4f9a1..b8af0c79 100644 --- a/src/client/menu/menu.c +++ b/src/client/menu/menu.c @@ -5447,9 +5447,7 @@ PlayerConfig_MenuDraw(void) refdef.fov_y = CalcFov(refdef.fov_x, (float)refdef.width, (float)refdef.height); refdef.time = cls.realtime * 0.001f; - if (s_pmi[s_player_model_box.curvalue].skindisplaynames && - s_player_skin_box.curvalue > 0 && - s_player_skin_box.curvalue < s_pmi[s_player_model_box.curvalue].nskins) + if (s_pmi[s_player_model_box.curvalue].skindisplaynames) { entity_t entity; char scratch[MAX_QPATH];