mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 20:59:00 +00:00
Don't segfault-on-exit when the game data files are missing.
svn-id: r12422
This commit is contained in:
parent
2c7057fdf4
commit
2d79f5b208
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user