summaryrefslogtreecommitdiff
path: root/src/genworld_gui.cpp
diff options
context:
space:
mode:
authorMiguel Horta <mmiguelhorta@gmail.com>2018-10-11 00:33:37 +0100
committerOwen Rudge <owen@owenrudge.net>2018-10-11 20:22:31 +0100
commite00908f5e900ac5314930b2775eb38f91a6c4abe (patch)
tree026783fc961a05d29cba553db96d992d202b0c8f /src/genworld_gui.cpp
parentfbfa4eb5920b10f57b9fc72730206f4a05c3638d (diff)
downloadopenttd-e00908f5e900ac5314930b2775eb38f91a6c4abe.tar.xz
Fix #6898: Replace atoi() with strtoul()
Normalize type and parsing of generation_seed across all files Add assert_compile() to ensure correct type
Diffstat (limited to 'src/genworld_gui.cpp')
-rw-r--r--src/genworld_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp
index 04eea8e66..b22ba5287 100644
--- a/src/genworld_gui.cpp
+++ b/src/genworld_gui.cpp
@@ -870,7 +870,7 @@ void StartScenarioEditor()
* Start a normal game without the GUI.
* @param seed The seed of the new game.
*/
-void StartNewGameWithoutGUI(uint seed)
+void StartNewGameWithoutGUI(uint32 seed)
{
/* GenerateWorld takes care of the possible GENERATE_NEW_SEED value in 'seed' */
_settings_newgame.game_creation.generation_seed = seed;