aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorEugene Sandulenko2013-04-21 14:33:52 +0300
committerEugene Sandulenko2013-04-21 14:51:33 +0300
commitce0a334d30b180e10cac01e126f2cda77d82d417 (patch)
tree41b386db7b0b1f1772853879ab5812e7370091bc /backends
parent2d41bae7321b671cf9a2b7cc8e3ea7c7d0fefd1d (diff)
downloadscummvm-rg350-ce0a334d30b180e10cac01e126f2cda77d82d417.tar.gz
scummvm-rg350-ce0a334d30b180e10cac01e126f2cda77d82d417.tar.bz2
scummvm-rg350-ce0a334d30b180e10cac01e126f2cda77d82d417.zip
BACKENDS: Fix unitialized variables in event manager. CID 1002944
Diffstat (limited to 'backends')
-rw-r--r--backends/events/default/default-events.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/events/default/default-events.cpp b/backends/events/default/default-events.cpp
index 99d12c73dc..38a0c8d46f 100644
--- a/backends/events/default/default-events.cpp
+++ b/backends/events/default/default-events.cpp
@@ -51,6 +51,8 @@ DefaultEventManager::DefaultEventManager(Common::EventSource *boss) :
// Reset key repeat
_currentKeyDown.keycode = 0;
+ _currentKeyDown.ascii = 0;
+ _currentKeyDown.flags = 0;
#ifdef ENABLE_VKEYBD
_vk = new Common::VirtualKeyboard();