aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/events.cpp
diff options
context:
space:
mode:
authorStrangerke2014-02-26 07:39:46 +0100
committerStrangerke2014-02-26 07:39:46 +0100
commitbcca831c6813aa1a52b478c6b2f40ac2ee108ed5 (patch)
tree299d6a96af8d32ac347d13fe774d1cca71a3b2b4 /engines/voyeur/events.cpp
parent27a098cd657350bb8481c19f38c2960a3d876f0d (diff)
downloadscummvm-rg350-bcca831c6813aa1a52b478c6b2f40ac2ee108ed5.tar.gz
scummvm-rg350-bcca831c6813aa1a52b478c6b2f40ac2ee108ed5.tar.bz2
scummvm-rg350-bcca831c6813aa1a52b478c6b2f40ac2ee108ed5.zip
VOYEUR: Fix some more uninitialized variables
Diffstat (limited to 'engines/voyeur/events.cpp')
-rw-r--r--engines/voyeur/events.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/voyeur/events.cpp b/engines/voyeur/events.cpp
index cff394797b..686994722e 100644
--- a/engines/voyeur/events.cpp
+++ b/engines/voyeur/events.cpp
@@ -80,6 +80,9 @@ EventsManager::EventsManager(): _intPtr(_gameData),
_newLeftClick = _newRightClick = false;;
_videoDead = 0;
+
+ _fadeFirstCol = _fadeLastCol = 0;
+ _fadeCount = 1;
}
void EventsManager::resetMouse() {
@@ -373,7 +376,6 @@ void EventsManager::vDoFadeInt() {
return;
}
-
for (int i = _fadeFirstCol; i <= _fadeLastCol; ++i) {
ViewPortPalEntry &palEntry = _vm->_graphicsManager._viewPortListPtr->_palette[i];
byte *vgaP = &_vm->_graphicsManager._VGAColors[palEntry._palIndex * 3];