aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/scumm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/scumm/scumm.cpp')
-rw-r--r--engines/scumm/scumm.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp
index 8ed72f0a93..6f5e0f0317 100644
--- a/engines/scumm/scumm.cpp
+++ b/engines/scumm/scumm.cpp
@@ -966,6 +966,9 @@ int ScummEngine::init() {
readIndexFile();
+ // Create the debugger now that _numVariables has been set
+ _debugger = new ScummDebugger(this);
+
resetScumm();
resetScummVars();
@@ -1082,10 +1085,6 @@ void ScummEngine::setupScumm() {
#if (defined(PALMOS_ARM) || defined(PALMOS_DEBUG) || defined(__GP32__))
Graphics::initfonts();
#endif
-
- // Create debugger
- if (!_debugger)
- _debugger = new ScummDebugger(this);
}
void ScummEngine::setupCharsetRenderer() {