Fix loading restart state in Amiga and AtariST versions of Elvira 2.
svn-id: r26996
This commit is contained in:
parent
0cdcfd4740
commit
0c27b66807
1 changed files with 2 additions and 2 deletions
|
@ -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]));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue