1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-30 10:15:36 +01:00

Fix compiler errors

This commit is contained in:
Ted John
2022-10-01 14:35:23 +01:00
parent 9bb47d0aa1
commit 2415b2e608

View File

@@ -167,7 +167,7 @@ public:
toolstripY += 24;
}
SetWidgetDisabled(WIDX_MOVE_UP, !_selectedIndex || _selectedIndex == 0);
SetWidgetDisabled(WIDX_MOVE_UP, !_selectedIndex || _selectedIndex == 0U);
SetWidgetDisabled(WIDX_MOVE_DOWN, !_selectedIndex || _selectedIndex >= GetNumAssetPacks() - 1);
widgets[WIDX_APPLY].bottom = widgets[WIDX_LIST].bottom;
@@ -312,7 +312,7 @@ private:
{
const auto index = (pos.y / ItemHeight) - 1;
if (index < 0 || static_cast<size_t>(index) >= GetNumAssetPacks())
return {};
return std::nullopt;
isCheckBox = pos.x >= 2 && pos.x <= 2 + ItemCheckBoxSize + 1;
return static_cast<size_t>(index);