summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-06-13 15:18:29 +0000
committerglx <glx@openttd.org>2008-06-13 15:18:29 +0000
commitfd08e7b51ab1d842fc40d407f3f0bb3d42018e96 (patch)
treec96df3e339041c18700ea4fe678ee8194258b385
parent24d35c58b70b82d4862ce1c6da50a02238ea5f36 (diff)
downloadopenttd-fd08e7b51ab1d842fc40d407f3f0bb3d42018e96.tar.xz
(svn r13508) -Fix (r7733): incorrect usage of strtoul
-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 7296346df..e080973f8 100644
--- a/src/genworld_gui.cpp
+++ b/src/genworld_gui.cpp
@@ -477,7 +477,7 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow {
* (use random seed) it should not be possible to be
* entered into the input field; the generate seed
* button can be used instead. */
- _settings_newgame.game_creation.generation_seed = minu(strtoul(this->edit_str_buf, NULL, sizeof(this->edit_str_buf) - 1), MAX_UVALUE(uint32) - 1);
+ _settings_newgame.game_creation.generation_seed = minu(strtoul(this->edit_str_buf, NULL, 10), MAX_UVALUE(uint32) - 1);
return state;
}