Skip to content

Commit

Permalink
main.cpp: The possible '--debug' options need to be '0', '1', etc. Th…
Browse files Browse the repository at this point in the history
…ese correspond to '--debug=0' on the command line.
  • Loading branch information
stephengtuggy committed Jan 18, 2025
1 parent 471e585 commit 5470e73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions engine/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -838,16 +838,16 @@ std::pair<std::string, std::string> ParseCommandLine(int argc, char **lpCmdLine)
if (cmd_args.count("debug")) {
char vs_debug_level_temp = cmd_args["debug"].as<char>();
switch (vs_debug_level_temp) {
case 0:
case '0':
g_game.vsdebug = 0;
break;
case 1:
case '1':
g_game.vsdebug = 1;
break;
case 2:
case '2':
g_game.vsdebug = 2;
break;
case 3:
case '3':
g_game.vsdebug = 3;
break;
default:
Expand Down

0 comments on commit 5470e73

Please sign in to comment.