From 81b46b626853516983c9e336f6996c85fbd781d2 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 22 Sep 2005 22:55:01 +0000 Subject: Fix regression introduced when we split engine constructiors into constructor itself and init() method. debug() and error() are dependent on _debug object in many engines, so if these methods were called on early stage, scummvm crashed. svn-id: r18860 --- simon/simon.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'simon') diff --git a/simon/simon.cpp b/simon/simon.cpp index 1cabe29182..51fcfbcb0c 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -276,6 +276,8 @@ SimonEngine::SimonEngine(GameDetector *detector, OSystem *syst) _vc_get_out_of_code = 0; _gameOffsetsPtr = 0; + _debugger = 0; + const SimonGameSettings *g = simon_settings; while (g->name) { if (!scumm_stricmp(detector->_game.name, g->name)) -- cgit v1.2.3