diff options
author | Paul Gilbert | 2015-01-07 22:51:03 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-01-07 22:51:03 -0500 |
commit | f9414fe5259547b6499d9fb8ccb54bdc0bebb0ed (patch) | |
tree | 96f147c3f6573524cf6616724a2e99a52a70eeff /engines/xeen/saves.cpp | |
parent | 96d086ab9cc28a2145072487b60036f916b28774 (diff) | |
download | scummvm-rg350-f9414fe5259547b6499d9fb8ccb54bdc0bebb0ed.tar.gz scummvm-rg350-f9414fe5259547b6499d9fb8ccb54bdc0bebb0ed.tar.bz2 scummvm-rg350-f9414fe5259547b6499d9fb8ccb54bdc0bebb0ed.zip |
XEEN: Further fix for savegame initialization
Diffstat (limited to 'engines/xeen/saves.cpp')
-rw-r--r-- | engines/xeen/saves.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/xeen/saves.cpp b/engines/xeen/saves.cpp index 36bb7bda1a..404e3492a2 100644 --- a/engines/xeen/saves.cpp +++ b/engines/xeen/saves.cpp @@ -103,8 +103,9 @@ void SavesManager::reset() { Common::MemoryWriteStreamDynamic saveFile(DisposeAfterUse::YES); Common::File fIn; - for (int i = 0; i <= 5; ++i) { - Common::String filename = prefix + Common::String::format("2A%dC", i); + const int RESOURCES[6] = { 0x2A0C, 0x2A1C, 0x2A2C, 0x2A3C, 0x284C, 0x2A5C }; + for (int i = 0; i < 6; ++i) { + Common::String filename = prefix + Common::String::format("%.4x", RESOURCES[i]); if (fIn.exists(filename)) { // Read in the next resource fIn.open(filename); |