1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +01:00

Prevent random shop items from overflowing to junk palettes

This commit is contained in:
Trevor Finney
2023-02-20 20:05:16 -05:00
parent 4faa8fe78f
commit c49651b487

View File

@@ -4942,7 +4942,7 @@ static void WindowRideColourPaint(WindowBase* w, DrawPixelInfo* dpi)
if ((gCurrentTicks % 64) == 0)
{
spriteColour++;
if (spriteColour >= COLOUR_COUNT)
if (spriteColour >= COLOUR_NUM_ORIGINAL)
{
spriteColour = COLOUR_BLACK;
}