1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

Fix build

This commit is contained in:
Ted John
2020-02-28 08:09:52 +00:00
parent 7628289eb3
commit cf9478eb76

View File

@@ -118,7 +118,7 @@ namespace OpenRCT2::Scripting
auto w = GetWindow();
if (w != nullptr)
{
for (int32_t i = 0; i < std::size(w->colours); i++)
for (size_t i = 0; i < std::size(w->colours); i++)
{
w->colours[i] = i < colours.size() ? std::clamp<int32_t>(colours[i], COLOUR_BLACK, COLOUR_COUNT - 1)
: COLOUR_BLACK;