From 1e82b99ecfb28eec2b6a388675ec3ef8c355059c Mon Sep 17 00:00:00 2001 From: Tater Date: Thu, 21 Nov 2024 02:24:40 -0600 Subject: [PATCH] small bindwheel fixes --- src/game/client/components/menus_settings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index 03225754970..04dd39609d3 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -3750,7 +3750,7 @@ void CMenus::RenderSettingsTClient(CUIRect MainView) BindWheelOptions.HSplitTop(MarginSmall, nullptr, &BindWheelOptions); BindWheelOptions.HSplitTop(ButtonSize, &Button, &BindWheelOptions); - if(DoButton_Menu(&s_SwapButton, Localize("Swap Selected"), 0, &Button) && s_SelectedBindIndex >= 0) + if(DoButton_Menu(&s_SwapButton, Localize("Swap Selected"), 0, &Button) && s_SelectedBindIndex >= 0 && s_AltSelectedBindIndex >= 0) { CBindWheel::SBind BindA = GameClient()->m_Bindwheel.m_vBinds[s_SelectedBindIndex]; CBindWheel::SBind BindB = GameClient()->m_Bindwheel.m_vBinds[s_AltSelectedBindIndex]; @@ -3762,7 +3762,7 @@ void CMenus::RenderSettingsTClient(CUIRect MainView) BindWheelOptions.HSplitTop(MarginSmall * 4.0f, nullptr, &BindWheelOptions); BindWheelOptions.HSplitTop(ButtonSize, &Button, &BindWheelOptions); - if(DoButton_Menu(&s_OverrideButton, Localize("Override Bind"), 0, &Button) && s_SelectedBindIndex >= 0) + if(DoButton_Menu(&s_OverrideButton, Localize("Override Selected"), 0, &Button) && s_SelectedBindIndex >= 0) { CBindWheel::SBind TempBind; if(str_length(s_aBindName) == 0)