aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorJames Brown2004-01-16 07:33:23 +0000
committerJames Brown2004-01-16 07:33:23 +0000
commit2d79f5b208bf9f7d0bca291c80c7994e53943474 (patch)
treed4e7458e70016d09fcf4916b58f72ada7d819a1d /scumm
parent2c7057fdf418ad894bdafa1c2e7607878b83c03f (diff)
downloadscummvm-rg350-2d79f5b208bf9f7d0bca291c80c7994e53943474.tar.gz
scummvm-rg350-2d79f5b208bf9f7d0bca291c80c7994e53943474.tar.bz2
scummvm-rg350-2d79f5b208bf9f7d0bca291c80c7994e53943474.zip
Don't segfault-on-exit when the game data files are missing.
svn-id: r12422
Diffstat (limited to 'scumm')
-rw-r--r--scumm/scummvm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp
index 8786d9cca9..84f6ebf669 100644
--- a/scumm/scummvm.cpp
+++ b/scumm/scummvm.cpp
@@ -2755,7 +2755,7 @@ void ScummEngine::errorString(const char *buf1, char *buf2) {
// Unless an error -originated- within the debugger, spawn the debugger. Otherwise
// exit out normally.
- if (!_debugger->isAttached()) {
+ if (_debugger && !_debugger->isAttached()) {
printf("%s\n", buf2); // (Print it again in case debugger segfaults)
_debugger->attach(buf2);
_debugger->onFrame();