aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/parallaction/loadsave.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/parallaction/loadsave.cpp b/engines/parallaction/loadsave.cpp
index b950f2f24d..04e1845067 100644
--- a/engines/parallaction/loadsave.cpp
+++ b/engines/parallaction/loadsave.cpp
@@ -715,7 +715,10 @@ int Parallaction::selectSaveFile(uint16 arg_0, const char* caption, const char*
slc->setList(l);
int idx = slc->runModal();
- _saveFileName = slc->getResultString();
+ if (idx >= 0) {
+ _saveFileName = slc->getResultString();
+ }
+
delete slc;
return idx;