Skip to content

Commit 951e848

Browse files
committed
Fixed buy menu hovered item index being messed up when re-opening menu
1 parent 8862cd8 commit 951e848

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/Menus/BuyMenuGUI.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ void BuyMenuGUI::SetEnabled(bool enable) {
487487
g_UInputMan.SetMousePos(mousePos, m_pController->GetPlayer());
488488

489489
// Default focus to the menu button
490+
m_LastHoveredMouseIndex = 0;
490491
m_MenuFocus = OK;
491492
m_FocusChange = true;
492493
UpdateTotalCostLabel(m_pController->GetTeam());

0 commit comments

Comments
 (0)