diff options
author | Filippos Karapetis | 2007-09-22 22:37:20 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-09-22 22:37:20 +0000 |
commit | 4333fafe76ecbb1a53bcfeba108b6d9e3d626b9f (patch) | |
tree | 80d7d9f6a9ed02d51dbe713292b34fa5d779c2e6 /engines/saga/saga.h | |
parent | b93e906285c1bba1ee70aebe23cd225b28cfeeb5 (diff) | |
download | scummvm-rg350-4333fafe76ecbb1a53bcfeba108b6d9e3d626b9f.tar.gz scummvm-rg350-4333fafe76ecbb1a53bcfeba108b6d9e3d626b9f.tar.bz2 scummvm-rg350-4333fafe76ecbb1a53bcfeba108b6d9e3d626b9f.zip |
Fix for bug #1800276 - "IHNM: Problem in saving". A bug in the logic of the save slot allocation algorithm became apparent with the FS node merge. It should be working correctly now
svn-id: r29031
Diffstat (limited to 'engines/saga/saga.h')
-rw-r--r-- | engines/saga/saga.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/saga/saga.h b/engines/saga/saga.h index 8016fb9e65..eece1ee039 100644 --- a/engines/saga/saga.h +++ b/engines/saga/saga.h @@ -517,7 +517,7 @@ public: uint getNewSaveSlotNumber(); bool locateSaveFile(char *saveName, uint &titleNumber); bool isSaveListFull() const { - return _saveFilesMaxCount == _saveFilesCount; + return _saveFilesCount == MAX_SAVES; } uint getSaveFilesCount() const { return isSaveListFull() ? _saveFilesCount : _saveFilesCount + 1; @@ -611,7 +611,6 @@ public: } private: - uint _saveFilesMaxCount; uint _saveFilesCount; SaveFileData _saveFiles[MAX_SAVES]; bool _saveMarks[MAX_SAVES]; |