From 5b25c40c4041538f7e050211039b81af8cf77eba Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 1 May 2013 01:40:24 +0300 Subject: SCI: Fix a non-initialized variable in GfxScreen - CID 1003105 --- engines/sci/graphics/screen.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/sci') 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; -- cgit v1.2.3