diff options
author | Miguel Horta <mmiguelhorta@gmail.com> | 2018-10-11 00:33:37 +0100 |
---|---|---|
committer | Owen Rudge <owen@owenrudge.net> | 2018-10-11 20:22:31 +0100 |
commit | e00908f5e900ac5314930b2775eb38f91a6c4abe (patch) | |
tree | 026783fc961a05d29cba553db96d992d202b0c8f /src/genworld_gui.cpp | |
parent | fbfa4eb5920b10f57b9fc72730206f4a05c3638d (diff) | |
download | openttd-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.cpp | 2 |
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; |