aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood
diff options
context:
space:
mode:
authorFilippos Karapetis2013-09-26 23:56:58 +0300
committerFilippos Karapetis2013-09-27 01:38:16 +0300
commitcfa6974d29e4f30c749f859242e54b59b555b67a (patch)
tree73f797a22ccf042194fb43411032bd06e1742d17 /engines/neverhood
parent16b419847f49a500347487f38d50795cb6a13a63 (diff)
downloadscummvm-rg350-cfa6974d29e4f30c749f859242e54b59b555b67a.tar.gz
scummvm-rg350-cfa6974d29e4f30c749f859242e54b59b555b67a.tar.bz2
scummvm-rg350-cfa6974d29e4f30c749f859242e54b59b555b67a.zip
NEVERHOOD: Fix uninitialized members of the Palette class - CID 1022303, 1022304, 1022305, 1022306
Diffstat (limited to 'engines/neverhood')
-rw-r--r--engines/neverhood/palette.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/neverhood/palette.cpp b/engines/neverhood/palette.cpp
index c381f46671..941bcc3cd3 100644
--- a/engines/neverhood/palette.cpp
+++ b/engines/neverhood/palette.cpp
@@ -66,6 +66,11 @@ void Palette::init() {
_status = 0;
_palette = new byte[1024];
_basePalette = new byte[1024];
+ _palCounter = 0;
+ _fadeToR = 0;
+ _fadeToG = 0;
+ _fadeToB = 0;
+ _fadeStep = 0;
}
void Palette::usePalette() {