aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/party.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-02-02 22:38:16 -0500
committerPaul Gilbert2015-02-02 22:38:16 -0500
commitf34c5ad9b65f626884736faf802d627dc2fe68c0 (patch)
tree4348519802a06ddb93204ae05dd50c6ad438dca0 /engines/xeen/party.cpp
parent38df23ace070902d5808e77a7260f5d62ef88108 (diff)
downloadscummvm-rg350-f34c5ad9b65f626884736faf802d627dc2fe68c0.tar.gz
scummvm-rg350-f34c5ad9b65f626884736faf802d627dc2fe68c0.tar.bz2
scummvm-rg350-f34c5ad9b65f626884736faf802d627dc2fe68c0.zip
XEEN: Finished Items dailog loading block for weapons
Diffstat (limited to 'engines/xeen/party.cpp')
-rw-r--r--engines/xeen/party.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp
index 2590abcf13..0a276b29cd 100644
--- a/engines/xeen/party.cpp
+++ b/engines/xeen/party.cpp
@@ -452,7 +452,7 @@ int Character::itemScan(int itemId) const {
for (int idx = 0; idx < INV_ITEMS_TOTAL; ++idx) {
const XeenItem &item = _weapons[idx];
- if (item._equipped && !(item._bonusFlags & 0xC0) && itemId < 11
+ if (item._frame && !(item._bonusFlags & 0xC0) && itemId < 11
&& itemId != 3 && item._material >= 59 && item._material <= 130) {
int mIndex = item.getAttributeCategory();
if (mIndex > 2)
@@ -468,7 +468,7 @@ int Character::itemScan(int itemId) const {
for (int idx = 0; idx < INV_ITEMS_TOTAL; ++idx) {
const XeenItem &item = _armor[idx];
- if (item._equipped && !(item._bonusFlags & 0xC0)) {
+ if (item._frame && !(item._bonusFlags & 0xC0)) {
if (itemId < 11 && itemId != 3 && item._material >= 59 && item._material <= 130) {
int mIndex = item.getAttributeCategory();
if (mIndex > 2)
@@ -500,7 +500,7 @@ int Character::itemScan(int itemId) const {
for (int idx = 0; idx < INV_ITEMS_TOTAL; ++idx) {
const XeenItem &item = _accessories[idx];
- if (item._equipped && !(item._bonusFlags & 0xC0) && itemId < 11 && itemId != 3) {
+ if (item._frame && !(item._bonusFlags & 0xC0) && itemId < 11 && itemId != 3) {
if (item._material >= 59 && item._material <= 130) {
int mIndex = item.getAttributeCategory();
if (mIndex > 2)