aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2008-04-05 03:13:26 +0000
committerJohannes Schickel2008-04-05 03:13:26 +0000
commitc826716a9134d1dff9a1ed4deefb4957b3530fc5 (patch)
treec7260dec1e02ef2bfb85e3728e529882159ce491
parentb99d5603cf871ab5b5b9800d44f21469d603ddd7 (diff)
downloadscummvm-rg350-c826716a9134d1dff9a1ed4deefb4957b3530fc5.tar.gz
scummvm-rg350-c826716a9134d1dff9a1ed4deefb4957b3530fc5.tar.bz2
scummvm-rg350-c826716a9134d1dff9a1ed4deefb4957b3530fc5.zip
Don't rename quicksave filenames when deleting files.
svn-id: r31401
-rw-r--r--engines/kyra/gui_v2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/kyra/gui_v2.cpp b/engines/kyra/gui_v2.cpp
index abfba42283..6ef46410e9 100644
--- a/engines/kyra/gui_v2.cpp
+++ b/engines/kyra/gui_v2.cpp
@@ -1936,7 +1936,8 @@ int GUI_v2::deleteMenu(Button *caller) {
if (i == _saveSlots.end())
break;
// We are only renaming all savefiles until we get some slots missing
- if (*(i-1) != *i)
+ // Also not rename quicksave slot filenames
+ if (*(i-1) != *i || *i >= 990)
break;
Common::String oldName = _vm->getSavegameFilename(*i);
Common::String newName = _vm->getSavegameFilename(*i-1);