Fix loading restart state in Amiga and AtariST versions of Elvira 2.

svn-id: r26996
This commit is contained in:
Travis Howell 2007-05-28 12:42:10 +00:00
parent 0cdcfd4740
commit 0c27b66807

View file

@ -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]));