aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2013-08-07 01:36:19 +0200
committerKahrl <kahrl@gmx.net>2013-08-07 01:36:19 +0200
commit7294f28c3a023ebbef8ee490ca82a165528e1c2d (patch)
treeedda9fb97e9aed31aef3638d7807eeae26a5a539
parent779165144eb8c898ab9dd0b8a39526ce6037e325 (diff)
downloadminetest-7294f28c3a023ebbef8ee490ca82a165528e1c2d.tar.gz
minetest-7294f28c3a023ebbef8ee490ca82a165528e1c2d.tar.bz2
minetest-7294f28c3a023ebbef8ee490ca82a165528e1c2d.zip
Fix uninitialized irr::SEvent fields in guiFormSpecMenu.cpp
-rw-r--r--src/guiFormSpecMenu.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp
index e826c22c7..45b0fe2e0 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<std::string>
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);