From 7f9c63239b2f360b6d96e8ff4dd007b80d990e46 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 31 Mar 2012 05:54:30 +0300 Subject: SCI: Make sure that the disable_dithering key exists --- engines/sci/sci.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index 9b0ee6924b..c77b49400f 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -221,7 +221,8 @@ Common::Error SciEngine::run() { // Initialize the game screen _gfxScreen = new GfxScreen(_resMan); - _gfxScreen->enableUndithering(ConfMan.getBool("disable_dithering")); + bool enableUnDitheringFlag = ConfMan.hasKey("disable_dithering") && ConfMan.getBool("disable_dithering"); + _gfxScreen->enableUndithering(enableUnDitheringFlag); _kernel = new Kernel(_resMan, segMan); -- cgit v1.2.3