Fix unsigned type warning/error on Windows

This commit is contained in:
Andrew Lanzone 2025-07-26 09:41:26 -07:00
parent ab03e01127
commit b961007345
4 changed files with 4 additions and 4 deletions

View File

@ -207,7 +207,7 @@ namespace MWGui
// Scroll the list to keep the active item in view // Scroll the list to keep the active item in view
if (mControllerFocus < mButtons.size()) if (mControllerFocus < mButtons.size())
{ {
int line = mButtons[mControllerFocus].second; size_t line = mButtons[mControllerFocus].second;
if (line <= 5) if (line <= 5)
mList->setViewOffset(MyGUI::IntPoint(0, 0)); mList->setViewOffset(MyGUI::IntPoint(0, 0));
else else

View File

@ -23,7 +23,7 @@ namespace MWGui
MyGUI::Button* mOkButton; MyGUI::Button* mOkButton;
MyGUI::TextBox* mGoldLabel; MyGUI::TextBox* mGoldLabel;
/// List of enabled/repairable items and their index in the full list. /// List of enabled/repairable items and their index in the full list.
std::vector<std::pair<MyGUI::Button*, int>> mButtons; std::vector<std::pair<MyGUI::Button*, size_t>> mButtons;
MWWorld::Ptr mActor; MWWorld::Ptr mActor;

View File

@ -267,7 +267,7 @@ namespace MWGui
if (mControllerFocus < mSpellButtons.size()) if (mControllerFocus < mSpellButtons.size())
{ {
// Scroll the list to keep the active item in view // Scroll the list to keep the active item in view
int line = mSpellButtons[mControllerFocus].second; size_t line = mSpellButtons[mControllerFocus].second;
if (line <= 5) if (line <= 5)
mSpellsView->setViewOffset(MyGUI::IntPoint(0, 0)); mSpellsView->setViewOffset(MyGUI::IntPoint(0, 0));
else else

View File

@ -40,7 +40,7 @@ namespace MWGui
std::map<MyGUI::Widget*, ESM::RefId> mSpellsWidgetMap; std::map<MyGUI::Widget*, ESM::RefId> mSpellsWidgetMap;
/// List of enabled/purchasable spells and their index in the full list. /// List of enabled/purchasable spells and their index in the full list.
std::vector<std::pair<MyGUI::Button*, int>> mSpellButtons; std::vector<std::pair<MyGUI::Button*, size_t>> mSpellButtons;
void onCancelButtonClicked(MyGUI::Widget* _sender); void onCancelButtonClicked(MyGUI::Widget* _sender);
void onSpellButtonClick(MyGUI::Widget* _sender); void onSpellButtonClick(MyGUI::Widget* _sender);