Don't segfault-on-exit when the game data files are missing.

svn-id: r12422
This commit is contained in:
James Brown 2004-01-16 07:33:23 +00:00
parent 2c7057fdf4
commit 2d79f5b208

View File

@ -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();