diff options
Diffstat (limited to 'engines/kyra/kyra_v1.cpp')
-rw-r--r-- | engines/kyra/kyra_v1.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/kyra/kyra_v1.cpp b/engines/kyra/kyra_v1.cpp index 2ad6d54bc1..d6e0a124d4 100644 --- a/engines/kyra/kyra_v1.cpp +++ b/engines/kyra/kyra_v1.cpp @@ -254,10 +254,12 @@ int KyraEngine_v1::checkInput(Button *buttonList, bool mainLoop) { saveGameState(saveLoadSlot, savegameName, 0); } } else if (event.kbd.flags == Common::KBD_CTRL) { - if (event.kbd.keycode == 'd') - _debugger->attach(); - else if (event.kbd.keycode == 'q') + if (event.kbd.keycode == 'd') { + if (_debugger) + _debugger->attach(); + } else if (event.kbd.keycode == 'q') { quitGame(); + } } else { switch(event.kbd.keycode) { case Common::KEYCODE_SPACE: |