From 02615ccd983e270fbd8ad3e9a98e9020756fc60e Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sun, 29 Mar 2020 02:09:02 +0300 Subject: fix --- src/control/Garages.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/control/Garages.cpp') diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp index 95f3a83d..b4d7a703 100644 --- a/src/control/Garages.cpp +++ b/src/control/Garages.cpp @@ -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; -- cgit v1.2.3