mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 17:57:14 +00:00
Only invoke g_engine->pauseEngine if g_engine != NULL
svn-id: r27831
This commit is contained in:
parent
e1bcd70436
commit
a64b12bb03
@ -98,10 +98,12 @@ bool DefaultEventManager::pollEvent(Common::Event &event) {
|
||||
|
||||
case Common::EVENT_QUIT:
|
||||
if (ConfMan.getBool("confirm_exit")) {
|
||||
g_engine->pauseEngine(true);
|
||||
if (g_engine)
|
||||
g_engine->pauseEngine(true);
|
||||
GUI::MessageDialog alert("Do you really want to quit?", "Yes", "No");
|
||||
result = _shouldQuit = (alert.runModal() == GUI::kMessageOK);
|
||||
g_engine->pauseEngine(false);
|
||||
if (g_engine)
|
||||
g_engine->pauseEngine(false);
|
||||
} else
|
||||
_shouldQuit = true;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user