From d6bedc8a36d5a0785f27912cd99a3137a2a7062d Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 2 May 2012 23:51:02 +0300 Subject: AGI: Proper handling of the cancel button when saving/loading --- engines/agi/saveload.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/agi') 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 -- cgit v1.2.3