From 88830a24ecdbd5995c71d28cce91fa8345c23278 Mon Sep 17 00:00:00 2001 From: terkhen Date: Wed, 14 Jul 2010 12:03:30 +0000 Subject: [PATCH] (svn r20141) -Fix: Initialize the state of OnKeyPress at the AI debug window (Zuu). --- src/ai/ai_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp index 91ebe07811..6acdaa2790 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -982,7 +982,7 @@ struct AIDebugWindow : public QueryStringBaseWindow { virtual EventState OnKeyPress(uint16 key, uint16 keycode) { - EventState state; + EventState state = ES_NOT_HANDLED; if (this->HandleEditBoxKey(AID_WIDGET_BREAK_STR_EDIT_BOX, key, keycode, state) != HEBR_NOT_FOCUSED) { /* Save the current string to static member so it can be restored next time the window is opened */ strecpy(this->break_string, this->edit_str_buf, lastof(this->break_string));