This commit is contained in:
Nikolay Korolev 2020-03-29 02:09:02 +03:00
parent 38c2f8fbb0
commit 02615ccd98

View File

@ -167,7 +167,7 @@ void CGarages::Update(void)
}
if ((CTimer::GetFrameCounter() & 0xF) != 0xC)
return;
if (++GarageToBeTidied >= 32)
if (++GarageToBeTidied >= NUM_GARAGES)
GarageToBeTidied = 0;
if (!aGarages[GarageToBeTidied].IsUsed())
return;