summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-07-14 11:43:46 +0000
committerterkhen <terkhen@openttd.org>2010-07-14 11:43:46 +0000
commite9793b3427a67b4768fc91927ebbb5c34b4f8b53 (patch)
tree59acdc58447748c58f5a582d4aa1501bcd31f266
parent0dde0a75855934b52123fddbcd5a4312f09b1835 (diff)
downloadopenttd-e9793b3427a67b4768fc91927ebbb5c34b4f8b53.tar.xz
(svn r20139) -Fix [FS#3902]: Found town window ignored all hotkeys (Zuu).
-rw-r--r--src/town_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp
index a6f463cc6..05c3ed260 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -1188,7 +1188,7 @@ public:
virtual EventState OnKeyPress(uint16 key, uint16 keycode)
{
- EventState state;
+ EventState state = ES_NOT_HANDLED;
if (this->HandleEditBoxKey(TSEW_TOWNNAME_EDITBOX, key, keycode, state) == HEBR_CANCEL) {
this->UnfocusFocusedWidget();
}