From f7642e19315e545d020cad7a19f8dde9cfb8de58 Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 7 Jun 2022 23:41:29 +0200 Subject: [PATCH] Scoreboard UI: fix not being able to switch to the Rankings panel --- qcsrc/client/hud/panel/scoreboard.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index dfab7d61b7..531e0c3561 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -277,8 +277,8 @@ float HUD_Scoreboard_InputEvent(float bInputType, float nPrimary, float nSeconda ++scoreboard_selected_panel; if (scoreboard_selected_panel == SB_PANEL_RANKINGS && !rankings_cnt) ++scoreboard_selected_panel; - if (scoreboard_selected_panel >= SB_PANEL_MAX) - scoreboard_selected_panel = 1; + if (scoreboard_selected_panel > SB_PANEL_MAX) + scoreboard_selected_panel = SB_PANEL_FIRST; scoreboard_selected_panel_time = time; } -- 2.39.2