aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorFilippos Karapetis2012-05-02 23:51:02 +0300
committerFilippos Karapetis2012-05-03 01:20:06 +0300
commitd6bedc8a36d5a0785f27912cd99a3137a2a7062d (patch)
treef1fbf7eddb9b28a7a1abf4a01516e850862499d8 /engines/agi
parentec1070678caa1070e3d229a80f77ad78a8360b33 (diff)
downloadscummvm-rg350-d6bedc8a36d5a0785f27912cd99a3137a2a7062d.tar.gz
scummvm-rg350-d6bedc8a36d5a0785f27912cd99a3137a2a7062d.tar.bz2
scummvm-rg350-d6bedc8a36d5a0785f27912cd99a3137a2a7062d.zip
AGI: Proper handling of the cancel button when saving/loading
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/saveload.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/agi/saveload.cpp b/engines/agi/saveload.cpp
index 8e524c8d9a..d58e55a6b9 100644
--- a/engines/agi/saveload.cpp
+++ b/engines/agi/saveload.cpp
@@ -831,6 +831,9 @@ int AgiEngine::scummVMSaveLoadDialog(bool isSave) {
delete dialog;
+ if (slot < 0)
+ return true;
+
if (isSave)
return doSave(slot, desc);
else