1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-24 23:56:38 +00:00

Fix clang error and unsigned bug

This commit is contained in:
Andrew Lanzone 2025-07-26 00:59:43 -07:00
parent c015599356
commit defd1edb6f
2 changed files with 3 additions and 2 deletions

View file

@ -589,7 +589,7 @@ namespace MWGui
if (arg.button == SDL_CONTROLLER_BUTTON_B) if (arg.button == SDL_CONTROLLER_BUTTON_B)
{ {
// Remove active ingredients or close the window, starting with right-most slot. // 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")) if (mIngredients[i]->isUserString("ToolTipType"))
{ {

View file

@ -901,7 +901,8 @@ namespace
} }
else if (arg.button == SDL_CONTROLLER_BUTTON_DPAD_LEFT || arg.button == SDL_CONTROLLER_BUTTON_LEFTSHOULDER) else if (arg.button == SDL_CONTROLLER_BUTTON_DPAD_LEFT || arg.button == SDL_CONTROLLER_BUTTON_LEFTSHOULDER)
notifyPrevPage(getWidget<MyGUI::Widget>(PrevPageBTN)); 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)); notifyNextPage(getWidget<MyGUI::Widget>(NextPageBTN));
return true; return true;