changeset 9516:4db0094fd185 draft

(svn r13508) -Fix (r7733): incorrect usage of strtoul
author glx <glx@openttd.org>
date Fri, 13 Jun 2008 15:18:29 +0000
parents bcc765d85155
children 5fc7173d0594
files src/genworld_gui.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/genworld_gui.cpp
+++ b/src/genworld_gui.cpp
@@ -477,7 +477,7 @@
 			* (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;
 	}