summaryrefslogtreecommitdiff
path: root/src/console_cmds.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-08-16 09:44:05 +0000
committerfrosch <frosch@openttd.org>2010-08-16 09:44:05 +0000
commit31bebd3ad5c345963acbf4b2679002f97a5be92b (patch)
treec15adcdfbf3624a35bd11fa0f1fb821a22479270 /src/console_cmds.cpp
parent65b43667fa40e39c3739d9b9c37a6e4a6f7c4fc9 (diff)
downloadopenttd-31bebd3ad5c345963acbf4b2679002f97a5be92b.tar.xz
(svn r20512) -Fix [FS#4036]: Generation seed is unsigned.
Diffstat (limited to 'src/console_cmds.cpp')
-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;
}