# HG changeset patch # User terkhen # Date 2010-07-14 12:01:40 # Node ID 740ee331727738eeb663d81f79946f575d1c3222 # Parent ba3aecfa4ec0e7b9193baccafc5c4a4bdd0b85de (svn r20140) -Fix: Initialize the state of OnKeyPress at the world generation window (Zuu). diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp --- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -688,7 +688,7 @@ struct GenerateLandscapeWindow : public 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