changeset 15833:dd2a8b5d9b6e draft

(svn r20512) -Fix [FS#4036]: Generation seed is unsigned.
author frosch <frosch@openttd.org>
date Mon, 16 Aug 2010 09:44:05 +0000
parents 46a2f3e18f05
children e02afd87560e
files src/console_cmds.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -970,7 +970,7 @@
 		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;
 }