summaryrefslogtreecommitdiffstats
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:12:25 +0100
commit4abebbe3b2557347c7493a9685b646159f132e49 (patch)
tree7046882355aa666d2e2f6f8d6c784519e404fe60
parentMerge pull request #983 from ZLau92/ZLau92-corrected-plane-pitch (diff)
downloadre3-4abebbe3b2557347c7493a9685b646159f132e49.tar
re3-4abebbe3b2557347c7493a9685b646159f132e49.tar.gz
re3-4abebbe3b2557347c7493a9685b646159f132e49.tar.bz2
re3-4abebbe3b2557347c7493a9685b646159f132e49.tar.lz
re3-4abebbe3b2557347c7493a9685b646159f132e49.tar.xz
re3-4abebbe3b2557347c7493a9685b646159f132e49.tar.zst
re3-4abebbe3b2557347c7493a9685b646159f132e49.zip
-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 19697c37..13f75dd9 100644
--- a/src/core/re3.cpp
+++ b/src/core/re3.cpp
@@ -1000,7 +1000,7 @@ extern bool gbRenderWorld2;
"PIZZA BOY", "RC Raider Pickup", "RC Bandit Race", "RC Baron Race", "Checkpoint Charlie"
};
- 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