summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/console_cmds.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index c1d1afdc1..49155919d 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;
}