diff options
author | Travis Howell | 2007-05-28 12:42:10 +0000 |
---|---|---|
committer | Travis Howell | 2007-05-28 12:42:10 +0000 |
commit | 0c27b668076af14e5d117cdaa44679728f8f78cd (patch) | |
tree | ed7d895c756eaee70bbffb9fa14d763635c8dd49 /engines/agos/saveload.cpp | |
parent | 0cdcfd4740aaae7a83668b111656209866d4ac1c (diff) | |
download | scummvm-rg350-0c27b668076af14e5d117cdaa44679728f8f78cd.tar.gz scummvm-rg350-0c27b668076af14e5d117cdaa44679728f8f78cd.tar.bz2 scummvm-rg350-0c27b668076af14e5d117cdaa44679728f8f78cd.zip |
Fix loading restart state in Amiga and AtariST versions of Elvira 2.
svn-id: r26996
Diffstat (limited to 'engines/agos/saveload.cpp')
-rw-r--r-- | engines/agos/saveload.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agos/saveload.cpp b/engines/agos/saveload.cpp index 8af398c859..1cbdcfbda3 100644 --- a/engines/agos/saveload.cpp +++ b/engines/agos/saveload.cpp @@ -1050,7 +1050,7 @@ bool AGOSEngine_Elvira2::loadGame(const char *filename, bool restartMode) { // read the items in item store for (i = 0; i != _numItemStore; i++) { - if (getGameType() == GType_ELVIRA2) { + if (getGameType() == GType_ELVIRA2 && getPlatform() == Common::kPlatformPC) { _itemStore[i] = derefItem(readItemID(f)); } else { _itemStore[i] = derefItem(f->readUint16BE()); @@ -1189,7 +1189,7 @@ bool AGOSEngine_Elvira2::saveGame(uint slot, const char *caption) { // write the items in item store for (i = 0; i != _numItemStore; i++) { - if (getGameType() == GType_ELVIRA2) { + if (getGameType() == GType_ELVIRA2 && getPlatform() == Common::kPlatformPC) { writeItemID(f, itemPtrToID(_itemStore[i])); } else { f->writeUint16BE(itemPtrToID(_itemStore[i])); |