mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-24 04:11:50 -04:00
Fix unsigned type warning/error on Windows
This commit is contained in:
parent
ab03e01127
commit
b961007345
@ -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
|
||||
|
@ -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<std::pair<MyGUI::Button*, int>> mButtons;
|
||||
std::vector<std::pair<MyGUI::Button*, size_t>> mButtons;
|
||||
|
||||
MWWorld::Ptr mActor;
|
||||
|
||||
|
@ -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
|
||||
|
@ -40,7 +40,7 @@ namespace MWGui
|
||||
|
||||
std::map<MyGUI::Widget*, ESM::RefId> mSpellsWidgetMap;
|
||||
/// 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 onSpellButtonClick(MyGUI::Widget* _sender);
|
||||
|
Loading…
x
Reference in New Issue
Block a user