aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2012-06-02 17:15:24 +1000
committerPaul Gilbert2012-06-02 17:15:24 +1000
commitea8c4960c7139440df9416366a78094f4753aa12 (patch)
tree96ca5a4b020b781224c74e392566a80fbfb1d8a1 /engines
parentc1e6913fedf05d18edf6ef64c5a7c1c2cabedd4e (diff)
downloadscummvm-rg350-ea8c4960c7139440df9416366a78094f4753aa12.tar.gz
scummvm-rg350-ea8c4960c7139440df9416366a78094f4753aa12.tar.bz2
scummvm-rg350-ea8c4960c7139440df9416366a78094f4753aa12.zip
TONY: Fix Valgrind warnings of checks on uninitialised variables
Diffstat (limited to 'engines')
-rw-r--r--engines/tony/input.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/tony/input.cpp b/engines/tony/input.cpp
index c1104204b5..fc98544e14 100644
--- a/engines/tony/input.cpp
+++ b/engines/tony/input.cpp
@@ -35,11 +35,12 @@ RMInput::RMInput() {
// Setup mouse fields
_clampMouse = false;
_mousePos.Set(0, 0);
- _leftButton = _rightButton = false;;
-
+ _leftButton = _rightButton = false;
_leftClickMouse = _leftReleaseMouse = false;
_rightClickMouse = _rightReleaseMouse = false;
+ Common::fill((byte *)&_event, (byte *)&_event + sizeof(Common::Event), 0);
+
// Setup keyboard fields
Common::fill(&_keyDown[0], &_keyDown[350], 0);
}