From b961007345244d3d805eb8321151566f17018736 Mon Sep 17 00:00:00 2001 From: Andrew Lanzone Date: Sat, 26 Jul 2025 09:41:26 -0700 Subject: [PATCH] Fix unsigned type warning/error on Windows --- apps/openmw/mwgui/merchantrepair.cpp | 2 +- apps/openmw/mwgui/merchantrepair.hpp | 2 +- apps/openmw/mwgui/spellbuyingwindow.cpp | 2 +- apps/openmw/mwgui/spellbuyingwindow.hpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/openmw/mwgui/merchantrepair.cpp b/apps/openmw/mwgui/merchantrepair.cpp index 58b05cf612..adaab63a93 100644 --- a/apps/openmw/mwgui/merchantrepair.cpp +++ b/apps/openmw/mwgui/merchantrepair.cpp @@ -207,7 +207,7 @@ namespace MWGui // Scroll the list to keep the active item in view if (mControllerFocus < mButtons.size()) { - int line = mButtons[mControllerFocus].second; + size_t line = mButtons[mControllerFocus].second; if (line <= 5) mList->setViewOffset(MyGUI::IntPoint(0, 0)); else diff --git a/apps/openmw/mwgui/merchantrepair.hpp b/apps/openmw/mwgui/merchantrepair.hpp index 8bc9ba4bac..28fb2a7c3c 100644 --- a/apps/openmw/mwgui/merchantrepair.hpp +++ b/apps/openmw/mwgui/merchantrepair.hpp @@ -23,7 +23,7 @@ namespace MWGui MyGUI::Button* mOkButton; MyGUI::TextBox* mGoldLabel; /// List of enabled/repairable items and their index in the full list. - std::vector> mButtons; + std::vector> mButtons; MWWorld::Ptr mActor; diff --git a/apps/openmw/mwgui/spellbuyingwindow.cpp b/apps/openmw/mwgui/spellbuyingwindow.cpp index 5f9914c4d9..12b4e453a6 100644 --- a/apps/openmw/mwgui/spellbuyingwindow.cpp +++ b/apps/openmw/mwgui/spellbuyingwindow.cpp @@ -267,7 +267,7 @@ namespace MWGui if (mControllerFocus < mSpellButtons.size()) { // Scroll the list to keep the active item in view - int line = mSpellButtons[mControllerFocus].second; + size_t line = mSpellButtons[mControllerFocus].second; if (line <= 5) mSpellsView->setViewOffset(MyGUI::IntPoint(0, 0)); else diff --git a/apps/openmw/mwgui/spellbuyingwindow.hpp b/apps/openmw/mwgui/spellbuyingwindow.hpp index 7a75afbed1..a53b57cc09 100644 --- a/apps/openmw/mwgui/spellbuyingwindow.hpp +++ b/apps/openmw/mwgui/spellbuyingwindow.hpp @@ -40,7 +40,7 @@ namespace MWGui std::map mSpellsWidgetMap; /// List of enabled/purchasable spells and their index in the full list. - std::vector> mSpellButtons; + std::vector> mSpellButtons; void onCancelButtonClicked(MyGUI::Widget* _sender); void onSpellButtonClick(MyGUI::Widget* _sender);