summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-07-14 12:01:40 +0000
committerterkhen <terkhen@openttd.org>2010-07-14 12:01:40 +0000
commit4d7c861947b0b9350afa5189aea36db891155948 (patch)
tree7f3cb87f8b11adcb0dea91d2f2356cc1f3b21033 /src
parente9793b3427a67b4768fc91927ebbb5c34b4f8b53 (diff)
downloadopenttd-4d7c861947b0b9350afa5189aea36db891155948.tar.xz
(svn r20140) -Fix: Initialize the state of OnKeyPress at the world generation window (Zuu).
Diffstat (limited to 'src')
-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 51396416d..fda190de8 100644
--- a/src/genworld_gui.cpp
+++ b/src/genworld_gui.cpp
@@ -688,7 +688,7 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow {
virtual EventState OnKeyPress(uint16 key, uint16 keycode)
{
- EventState state;
+ EventState state = ES_NOT_HANDLED;
this->HandleEditBoxKey(GLAND_RANDOM_EDITBOX, key, keycode, state);
/* the seed is unsigned, therefore atoi cannot be used.
* As UINT32_MAX is a 'magic' value (use random seed) it