aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2013-05-01 01:40:24 +0300
committerFilippos Karapetis2013-05-01 01:51:12 +0300
commit5b25c40c4041538f7e050211039b81af8cf77eba (patch)
tree4856d9b53d19d103fa2aec0268d8218e5e172738
parent012a5ef040d32312a0626fe0be6dbdaf1a2424e4 (diff)
downloadscummvm-rg350-5b25c40c4041538f7e050211039b81af8cf77eba.tar.gz
scummvm-rg350-5b25c40c4041538f7e050211039b81af8cf77eba.tar.bz2
scummvm-rg350-5b25c40c4041538f7e050211039b81af8cf77eba.zip
SCI: Fix a non-initialized variable in GfxScreen - CID 1003105
-rw-r--r--engines/sci/graphics/screen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/graphics/screen.cpp b/engines/sci/graphics/screen.cpp
index 246b6bfff9..74503c0c77 100644
--- a/engines/sci/graphics/screen.cpp
+++ b/engines/sci/graphics/screen.cpp
@@ -115,6 +115,8 @@ GfxScreen::GfxScreen(ResourceManager *resMan) : _resMan(resMan) {
_controlScreen = (byte *)calloc(_pixels, 1);
_displayScreen = (byte *)calloc(_displayPixels, 1);
+ memset(&_ditheredPicColors, 0, sizeof(_ditheredPicColors));
+
// Sets display screen to be actually displayed
_activeScreen = _displayScreen;