diff options
author | frosch <frosch@openttd.org> | 2010-08-16 09:44:05 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-08-16 09:44:05 +0000 |
commit | 31bebd3ad5c345963acbf4b2679002f97a5be92b (patch) | |
tree | c15adcdfbf3624a35bd11fa0f1fb821a22479270 /src | |
parent | 65b43667fa40e39c3739d9b9c37a6e4a6f7c4fc9 (diff) | |
download | openttd-31bebd3ad5c345963acbf4b2679002f97a5be92b.tar.xz |
(svn r20512) -Fix [FS#4036]: Generation seed is unsigned.
Diffstat (limited to 'src')
-rw-r--r-- | src/console_cmds.cpp | 2 |
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; } |