aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2016-11-15 21:16:21 -0500
committerPaul Gilbert2016-11-15 21:16:21 -0500
commit0fb54db9b8c32aa1c9cc55a22b52c9c6fb2b7eca (patch)
tree4e26d3da6f8d18ee0c5015276dc4b3e9d1583866
parentafb4b6227a0f20ca829801e00dcf75eeb4c18999 (diff)
downloadscummvm-rg350-0fb54db9b8c32aa1c9cc55a22b52c9c6fb2b7eca.tar.gz
scummvm-rg350-0fb54db9b8c32aa1c9cc55a22b52c9c6fb2b7eca.tar.bz2
scummvm-rg350-0fb54db9b8c32aa1c9cc55a22b52c9c6fb2b7eca.zip
TITANIC: Don't try to load save if quitting from Continue dialog
-rw-r--r--engines/titanic/continue_save_dialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/titanic/continue_save_dialog.cpp b/engines/titanic/continue_save_dialog.cpp
index 0982cab408..f266c39e60 100644
--- a/engines/titanic/continue_save_dialog.cpp
+++ b/engines/titanic/continue_save_dialog.cpp
@@ -75,6 +75,8 @@ int CContinueSaveDialog::show() {
while (!g_vm->shouldQuit() && _selectedSlot == -999) {
g_vm->_events->pollEventsAndWait();
}
+ if (g_vm->shouldQuit())
+ _selectedSlot = -2;
return _selectedSlot;
}