mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-04-28 21:27:58 +03:00
Change default index retrieval to sidebarOrder
vectors. (#5189)
This commit is contained in:
parent
9ffe2ab2b9
commit
2564721b2c
1 changed files with 1 additions and 1 deletions
|
@ -727,7 +727,7 @@ void Menu::DrawElement() {
|
||||||
|
|
||||||
std::string sectionIndex = CVarGetString(sidebarCvar, "");
|
std::string sectionIndex = CVarGetString(sidebarCvar, "");
|
||||||
if (!sidebar->contains(sectionIndex)) {
|
if (!sidebar->contains(sectionIndex)) {
|
||||||
sectionIndex = sidebar->begin()->first;
|
sectionIndex = menuEntries.at(headerIndex).sidebarOrder.at(0);
|
||||||
}
|
}
|
||||||
float sectionCenterX = pos.x + (sidebarWidth / 2);
|
float sectionCenterX = pos.x + (sidebarWidth / 2);
|
||||||
float topY = pos.y;
|
float topY = pos.y;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue