diff options
Diffstat (limited to 'engines/glk/alan2/debug.cpp')
-rw-r--r-- | engines/glk/alan2/debug.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/glk/alan2/debug.cpp b/engines/glk/alan2/debug.cpp index b455db6930..bea427bdb4 100644 --- a/engines/glk/alan2/debug.cpp +++ b/engines/glk/alan2/debug.cpp @@ -315,8 +315,11 @@ void debug() { $iX -- exit debug mode\ $iQ -- quit game"); break; - case 'Q': - terminate(0); + case 'Q': { + Context ctx; + terminate(ctx, 0); + break; + } case 'X': dbgflg = FALSE; /* Fall through to 'G' */ case 'G': |