diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index c1d1afdc16..49155919d6 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -970,7 +970,7 @@ DEF_CONSOLE_CMD(ConNewGame) return true; } - StartNewGameWithoutGUI((argc == 2) ? (uint)atoi(argv[1]) : GENERATE_NEW_SEED); + StartNewGameWithoutGUI((argc == 2) ? strtoul(argv[1], NULL, 10) : GENERATE_NEW_SEED); return true; }