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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user