summaryrefslogtreecommitdiffstats
path: root/src/core/re3.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-23 21:04:24 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-23 21:04:24 +0100
commit37d1aa41296f3ea1e912041d4fc201df54ad2639 (patch)
tree5b01aa010def0f2dcc739559237d627ceb44e3eb /src/core/re3.cpp
parentadded some missing functions (diff)
downloadre3-37d1aa41296f3ea1e912041d4fc201df54ad2639.tar
re3-37d1aa41296f3ea1e912041d4fc201df54ad2639.tar.gz
re3-37d1aa41296f3ea1e912041d4fc201df54ad2639.tar.bz2
re3-37d1aa41296f3ea1e912041d4fc201df54ad2639.tar.lz
re3-37d1aa41296f3ea1e912041d4fc201df54ad2639.tar.xz
re3-37d1aa41296f3ea1e912041d4fc201df54ad2639.tar.zst
re3-37d1aa41296f3ea1e912041d4fc201df54ad2639.zip
Diffstat (limited to 'src/core/re3.cpp')
-rw-r--r--src/core/re3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp
index cc3e93cb..06621cf0 100644
--- a/src/core/re3.cpp
+++ b/src/core/re3.cpp
@@ -767,7 +767,7 @@ extern bool gbRenderDebugEnvMap;
"A Date with Death (Toshiko Kasen)", "Cash in Kazuki's Chips (Toshiko Kasen)"
};
- missionEntry = DebugMenuAddVar("Debug", "Select mission", &nextMissionToSwitch, nil, 1, 0, 96, missions);
+ missionEntry = DebugMenuAddVar("Debug", "Select mission", &nextMissionToSwitch, nil, 1, 0, ARRAY_SIZE(missions) - 1, missions);
DebugMenuEntrySetWrap(missionEntry, true);
DebugMenuAddCmd("Debug", "Start selected mission ", SwitchToMission);
#endif