Skip to content
Snippets Groups Projects
Commit 7294f28c authored by Kahrl's avatar Kahrl
Browse files

Fix uninitialized irr::SEvent fields in guiFormSpecMenu.cpp

parent 77916514
No related branches found
No related tags found
No related merge requests found
...@@ -803,8 +803,11 @@ void GUIFormSpecMenu::parsePwdField(parserData* data,std::string element) { ...@@ -803,8 +803,11 @@ void GUIFormSpecMenu::parsePwdField(parserData* data,std::string element) {
e->setPasswordBox(true,L'*'); e->setPasswordBox(true,L'*');
irr::SEvent evt; 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; evt.KeyInput.PressedDown = true;
e->OnEvent(evt); e->OnEvent(evt);
m_fields.push_back(spec); m_fields.push_back(spec);
...@@ -877,8 +880,11 @@ void GUIFormSpecMenu::parseSimpleField(parserData* data,std::vector<std::string> ...@@ -877,8 +880,11 @@ void GUIFormSpecMenu::parseSimpleField(parserData* data,std::vector<std::string>
Environment->setFocus(e); Environment->setFocus(e);
irr::SEvent evt; 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; evt.KeyInput.PressedDown = true;
e->OnEvent(evt); e->OnEvent(evt);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment