Skip to content

Commit

Permalink
small bindwheel fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrc6 committed Nov 21, 2024
1 parent 30873ee commit 1e82b99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/client/components/menus_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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)
Expand Down

0 comments on commit 1e82b99

Please sign in to comment.