mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-24 18:56:36 +00:00
Fix clang error and unsigned bug
This commit is contained in:
parent
c015599356
commit
defd1edb6f
2 changed files with 3 additions and 2 deletions
|
|
@ -589,7 +589,7 @@ namespace MWGui
|
|||
if (arg.button == SDL_CONTROLLER_BUTTON_B)
|
||||
{
|
||||
// Remove active ingredients or close the window, starting with right-most slot.
|
||||
for (size_t i = mIngredients.size() - 1; i >= 0; --i)
|
||||
for (int i = mIngredients.size() - 1; i >= 0; --i)
|
||||
{
|
||||
if (mIngredients[i]->isUserString("ToolTipType"))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -901,7 +901,8 @@ namespace
|
|||
}
|
||||
else if (arg.button == SDL_CONTROLLER_BUTTON_DPAD_LEFT || arg.button == SDL_CONTROLLER_BUTTON_LEFTSHOULDER)
|
||||
notifyPrevPage(getWidget<MyGUI::Widget>(PrevPageBTN));
|
||||
else if (arg.button == SDL_CONTROLLER_BUTTON_DPAD_RIGHT || arg.button == SDL_CONTROLLER_BUTTON_RIGHTSHOULDER)
|
||||
else if (arg.button == SDL_CONTROLLER_BUTTON_DPAD_RIGHT
|
||||
|| arg.button == SDL_CONTROLLER_BUTTON_RIGHTSHOULDER)
|
||||
notifyNextPage(getWidget<MyGUI::Widget>(NextPageBTN));
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue