Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
use ARRAY_SIZE
  • Loading branch information
Nick007J committed Jan 23, 2021
1 parent 35258b9 commit 921ca7712e9377359422d756163563337825e018
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 921ca77

Please sign in to comment.