summaryrefslogtreecommitdiffstats
path: root/src/core/re3.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-23 21:10:59 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-23 21:10:59 +0100
commit921ca7712e9377359422d756163563337825e018 (patch)
tree951839921ec95f6fa811fb4ba02fa0f6b1a6075e /src/core/re3.cpp
parentadded some missing functions (diff)
downloadre3-921ca7712e9377359422d756163563337825e018.tar
re3-921ca7712e9377359422d756163563337825e018.tar.gz
re3-921ca7712e9377359422d756163563337825e018.tar.bz2
re3-921ca7712e9377359422d756163563337825e018.tar.lz
re3-921ca7712e9377359422d756163563337825e018.tar.xz
re3-921ca7712e9377359422d756163563337825e018.tar.zst
re3-921ca7712e9377359422d756163563337825e018.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 42e59e6e..7c780516 100644
--- a/src/core/re3.cpp
+++ b/src/core/re3.cpp
@@ -936,7 +936,7 @@ extern bool gbRenderWorld2;
"Uzi Money", "Toyminator", "Rigged To Blow", "Bullion Run", "Rumble", "The Exchange"
};
- missionEntry = DebugMenuAddVar("Debug", "Select mission", &nextMissionToSwitch, nil, 1, 0, 79, 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