From 31bebd3ad5c345963acbf4b2679002f97a5be92b Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 16 Aug 2010 09:44:05 +0000 Subject: (svn r20512) -Fix [FS#4036]: Generation seed is unsigned. --- src/console_cmds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/console_cmds.cpp') 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; } -- cgit v1.2.3-54-g00ecf