diff options
author | Paul Gilbert | 2015-02-01 23:32:16 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-02-01 23:32:16 -0500 |
commit | 7febe773008db7cee0ed1b3f5f1f2fb114d22334 (patch) | |
tree | 8950cd1ecd626dc2cfedde87ba1cfe7d0e9521ee /engines/xeen/party.cpp | |
parent | 78234db2c02c95e1b9e88b4096b9a9c96fd95adf (diff) | |
download | scummvm-rg350-7febe773008db7cee0ed1b3f5f1f2fb114d22334.tar.gz scummvm-rg350-7febe773008db7cee0ed1b3f5f1f2fb114d22334.tar.bz2 scummvm-rg350-7febe773008db7cee0ed1b3f5f1f2fb114d22334.zip |
XEEN: Beginnings of Items dialog
Diffstat (limited to 'engines/xeen/party.cpp')
-rw-r--r-- | engines/xeen/party.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp index ce5ccd0bc1..03535066e1 100644 --- a/engines/xeen/party.cpp +++ b/engines/xeen/party.cpp @@ -487,7 +487,7 @@ int Character::itemScan(int itemId) const { } if (itemId == 9) { - result += ARMOR_STRENGTHS[item._name]; + result += ARMOR_STRENGTHS[item._id]; if (item._material >= 37 && item._material <= 58) result += METAL_LAC[item._material - 37]; @@ -959,13 +959,13 @@ void Party::synchronize(Common::Serializer &s) { s.syncAsByte(_difficulty); for (int i = 0; i < ITEMS_COUNT; ++i) - _blacksmithWeapons[i].synchronize(s); + _blacksmithWeapons[0][i].synchronize(s); for (int i = 0; i < ITEMS_COUNT; ++i) - _blacksmithArmor[i].synchronize(s); + _blacksmithArmor[0][i].synchronize(s); for (int i = 0; i < ITEMS_COUNT; ++i) - _blacksmithAccessories[i].synchronize(s); + _blacksmithAccessories[0][i].synchronize(s); for (int i = 0; i < ITEMS_COUNT; ++i) - _blacksmithMisc[i].synchronize(s); + _blacksmithMisc[0][i].synchronize(s); s.syncAsUint16LE(_cloudsEnd); s.syncAsUint16LE(_darkSideEnd); @@ -998,13 +998,13 @@ void Party::synchronize(Common::Serializer &s) { s.syncAsByte(_questItems[i]); for (int i = 0; i < ITEMS_COUNT; ++i) - _blacksmithWeapons2[i].synchronize(s); + _blacksmithWeapons[1][i].synchronize(s); for (int i = 0; i < ITEMS_COUNT; ++i) - _blacksmithArmor2[i].synchronize(s); + _blacksmithArmor[1][i].synchronize(s); for (int i = 0; i < ITEMS_COUNT; ++i) - _blacksmithAccessories2[i].synchronize(s); + _blacksmithAccessories[1][i].synchronize(s); for (int i = 0; i < ITEMS_COUNT; ++i) - _blacksmithMisc2[i].synchronize(s); + _blacksmithMisc[1][i].synchronize(s); for (int i = 0; i < TOTAL_CHARACTERS; ++i) SavesManager::syncBitFlags(s, &_characterFlags[i][0], &_characterFlags[i][24]); |