aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorEugene Sandulenko2005-09-22 22:55:01 +0000
committerEugene Sandulenko2005-09-22 22:55:01 +0000
commit81b46b626853516983c9e336f6996c85fbd781d2 (patch)
tree7fea1b8dc0165f897d0cdaa5f962c5736a6a4a30 /simon
parent2b1d4ef990c0a822da7838aa3261bbb7f48b2fba (diff)
downloadscummvm-rg350-81b46b626853516983c9e336f6996c85fbd781d2.tar.gz
scummvm-rg350-81b46b626853516983c9e336f6996c85fbd781d2.tar.bz2
scummvm-rg350-81b46b626853516983c9e336f6996c85fbd781d2.zip
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
Diffstat (limited to 'simon')
-rw-r--r--simon/simon.cpp2
1 files changed, 2 insertions, 0 deletions
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))