diff options
author | Filippos Karapetis | 2009-01-27 20:24:08 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-01-27 20:24:08 +0000 |
commit | c27c9c37b7548b785c38df8bfbd7437dc1a73bbd (patch) | |
tree | 7fcf8be150e6dc93c3b637a97bb99aec3045e02e /engines/agi | |
parent | 8cabfc677f5b1948313e7cc73c2f584c9fc59172 (diff) | |
download | scummvm-rg350-c27c9c37b7548b785c38df8bfbd7437dc1a73bbd.tar.gz scummvm-rg350-c27c9c37b7548b785c38df8bfbd7437dc1a73bbd.tar.bz2 scummvm-rg350-c27c9c37b7548b785c38df8bfbd7437dc1a73bbd.zip |
Protect save slot 0 from being overwritten and/or deleted by the GMM save/load menus
svn-id: r36112
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/detection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp index 4fa63b4afa..9cb55e029d 100644 --- a/engines/agi/detection.cpp +++ b/engines/agi/detection.cpp @@ -937,8 +937,8 @@ SaveStateDescriptor AgiMetaEngine::querySaveMetaInfos(const char *target, int sl SaveStateDescriptor desc(slot, name); - desc.setDeletableFlag(true); - desc.setWriteProtectedFlag(false); + desc.setDeletableFlag(slot != 0); + desc.setWriteProtectedFlag(slot == 0); char saveVersion = in->readByte(); if (saveVersion >= 4) { |