diff options
author | eriktorbjorn | 2011-04-13 22:33:41 +0200 |
---|---|---|
committer | eriktorbjorn | 2011-04-13 22:33:41 +0200 |
commit | cc82bacc775731dab91c036240b31d6c2b7b44fe (patch) | |
tree | 9a38fc88debfaec6a30afe8c48cd99e1c15732d7 /engines/tsage | |
parent | f9e9ecd454057f27a2352a936eec955e6906ebcb (diff) | |
download | scummvm-rg350-cc82bacc775731dab91c036240b31d6c2b7b44fe.tar.gz scummvm-rg350-cc82bacc775731dab91c036240b31d6c2b7b44fe.tar.bz2 scummvm-rg350-cc82bacc775731dab91c036240b31d6c2b7b44fe.zip |
TSAGE: Always initialise the event in getEvent()
This fixes Valgrind warnings when getEvent() is called when there are
no pending events at all.
Diffstat (limited to 'engines/tsage')
-rw-r--r-- | engines/tsage/events.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/tsage/events.cpp b/engines/tsage/events.cpp index 4d2a1cce8c..fa5ecdcde6 100644 --- a/engines/tsage/events.cpp +++ b/engines/tsage/events.cpp @@ -127,6 +127,9 @@ bool EventsClass::getEvent(Event &evt, int eventMask) { return true; } + evt.handled = false; + evt.eventType = EVENT_NONE; + return false; } |