diff options
| author | Malkierian <malkierian@gmail.com> | 2025-10-23 18:32:00 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-23 18:32:00 -0700 |
| commit | ad2807ce322412667704085ffc895de92b33aadb (patch) | |
| tree | 8185036c64d2827ab3166212bfb6fcdd5a67798f | |
| parent | ae1cee9b13358bf5e2e5423f4cc96b297ef1dd97 (diff) | |
Fix adding Enable Mods twice as search widget. (#5880)
Fix a couple typos in search widget extra terms.
| -rw-r--r-- | soh/soh/Enhancements/mod_menu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/soh/soh/Enhancements/mod_menu.cpp b/soh/soh/Enhancements/mod_menu.cpp index 3051efe74..9e3fda114 100644 --- a/soh/soh/Enhancements/mod_menu.cpp +++ b/soh/soh/Enhancements/mod_menu.cpp @@ -205,7 +205,7 @@ void DrawMods(bool enabled) { int switchToIndex = -1; uint32_t index = 0; - for (int i = selectedModFiles.size() - 1; i >= 0; i--) { + for (int i = static_cast<int>(selectedModFiles.size()) - 1; i >= 0; i--) { std::string file = selectedModFiles[i]; if (enabled) { ImGui::BeginGroup(); @@ -365,7 +365,7 @@ void RegisterModMenuWidgets() { auto options = std::static_pointer_cast<UIWidgets::CheckboxOptions>(info.options); options->disabled = editing; }); - SohGui::mSohMenu->AddSearchWidget({ enableModsWidget, "Settings", "Mod Menu", "Top", "alternat assets" }); + SohGui::mSohMenu->AddSearchWidget({ enableModsWidget, "Settings", "Mod Menu", "Top", "alternate assets" }); tabHotkeyWidget = { .name = "Mods Tab Hotkey", .type = WidgetType::WIDGET_CVAR_CHECKBOX }; tabHotkeyWidget.CVar(CVAR_SETTING("Mods.AlternateAssetsHotkey")) @@ -375,7 +375,7 @@ void RegisterModMenuWidgets() { .Tooltip("Allows pressing the Tab key to toggle mods") .DefaultValue(true)); SohGui::mSohMenu->AddSearchWidget( - { enableModsWidget, "Settings", "Mod Menu", "Top", "alternat assets tab hotkey" }); + { tabHotkeyWidget, "Settings", "Mod Menu", "Top", "alternate assets tab hotkey" }); } static RegisterMenuInitFunc menuInitFunc(RegisterModMenuWidgets); |
