From 2564721b2c22c2d3c80ed1bdfcfac690a308eb1b Mon Sep 17 00:00:00 2001 From: Malkierian Date: Sun, 23 Mar 2025 09:42:34 -0700 Subject: [PATCH] Change default index retrieval to `sidebarOrder` vectors. (#5189) --- soh/soh/SohGui/Menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soh/soh/SohGui/Menu.cpp b/soh/soh/SohGui/Menu.cpp index 955b048d6..63fdca5a9 100644 --- a/soh/soh/SohGui/Menu.cpp +++ b/soh/soh/SohGui/Menu.cpp @@ -727,7 +727,7 @@ void Menu::DrawElement() { std::string sectionIndex = CVarGetString(sidebarCvar, ""); if (!sidebar->contains(sectionIndex)) { - sectionIndex = sidebar->begin()->first; + sectionIndex = menuEntries.at(headerIndex).sidebarOrder.at(0); } float sectionCenterX = pos.x + (sidebarWidth / 2); float topY = pos.y;