From: Kahrl Date: Tue, 6 Aug 2013 23:36:19 +0000 (+0200) Subject: Fix uninitialized irr::SEvent fields in guiFormSpecMenu.cpp X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=7294f28c3a023ebbef8ee490ca82a165528e1c2d;p=zefram%2Fminetest%2Fminetest_engine.git Fix uninitialized irr::SEvent fields in guiFormSpecMenu.cpp --- diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index e826c22c..45b0fe2e 100644 --- a/src/guiFormSpecMenu.cpp +++ b/src/guiFormSpecMenu.cpp @@ -803,8 +803,11 @@ void GUIFormSpecMenu::parsePwdField(parserData* data,std::string element) { e->setPasswordBox(true,L'*'); irr::SEvent evt; - evt.KeyInput.Key = KEY_END; - evt.EventType = EET_KEY_INPUT_EVENT; + evt.EventType = EET_KEY_INPUT_EVENT; + evt.KeyInput.Key = KEY_END; + evt.KeyInput.Char = 0; + evt.KeyInput.Control = 0; + evt.KeyInput.Shift = 0; evt.KeyInput.PressedDown = true; e->OnEvent(evt); m_fields.push_back(spec); @@ -877,8 +880,11 @@ void GUIFormSpecMenu::parseSimpleField(parserData* data,std::vector Environment->setFocus(e); irr::SEvent evt; - evt.KeyInput.Key = KEY_END; - evt.EventType = EET_KEY_INPUT_EVENT; + evt.EventType = EET_KEY_INPUT_EVENT; + evt.KeyInput.Key = KEY_END; + evt.KeyInput.Char = 0; + evt.KeyInput.Control = 0; + evt.KeyInput.Shift = 0; evt.KeyInput.PressedDown = true; e->OnEvent(evt);