diff options
-rw-r--r-- | src/town_gui.cpp | 2 |
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(); } |