summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-03-29 00:09:02 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-03-29 00:09:02 +0100
commit02615ccd983e270fbd8ad3e9a98e9020756fc60e (patch)
treea56cbdce2dc40c18a09ed385e554c8d03f798594 /src
parentfixes (diff)
downloadre3-02615ccd983e270fbd8ad3e9a98e9020756fc60e.tar
re3-02615ccd983e270fbd8ad3e9a98e9020756fc60e.tar.gz
re3-02615ccd983e270fbd8ad3e9a98e9020756fc60e.tar.bz2
re3-02615ccd983e270fbd8ad3e9a98e9020756fc60e.tar.lz
re3-02615ccd983e270fbd8ad3e9a98e9020756fc60e.tar.xz
re3-02615ccd983e270fbd8ad3e9a98e9020756fc60e.tar.zst
re3-02615ccd983e270fbd8ad3e9a98e9020756fc60e.zip
Diffstat (limited to 'src')
-rw-r--r--src/control/Garages.cpp2
1 files changed, 1 insertions, 1 deletions
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;