diff options
author | Paul Gilbert | 2018-03-31 18:39:42 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-03-31 18:39:42 -0400 |
commit | b6fc3fd99195f2cbc1e17ea6827175855df8f8cc (patch) | |
tree | bcfde66f5491df48d4c241ef69618f197133882f /engines/xeen/party.cpp | |
parent | 263df996b60ea9b505be18f5eeeb3ce4c27d0fd2 (diff) | |
download | scummvm-rg350-b6fc3fd99195f2cbc1e17ea6827175855df8f8cc.tar.gz scummvm-rg350-b6fc3fd99195f2cbc1e17ea6827175855df8f8cc.tar.bz2 scummvm-rg350-b6fc3fd99195f2cbc1e17ea6827175855df8f8cc.zip |
XEEN: Change many item Id checks to use empty() function
Diffstat (limited to 'engines/xeen/party.cpp')
-rw-r--r-- | engines/xeen/party.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp index f60c532872..a3bb674093 100644 --- a/engines/xeen/party.cpp +++ b/engines/xeen/party.cpp @@ -799,10 +799,10 @@ bool Party::arePacksFull() const { uint total = 0; for (uint idx = 0; idx < _activeParty.size(); ++idx) { const Character &c = _activeParty[idx]; - total += (c._weapons[INV_ITEMS_TOTAL - 1]._id != 0 ? 1 : 0) - + (c._armor[INV_ITEMS_TOTAL - 1]._id != 0 ? 1 : 0) - + (c._accessories[INV_ITEMS_TOTAL - 1]._id != 0 ? 1 : 0) - + (c._misc[INV_ITEMS_TOTAL - 1]._id != 0 ? 1 : 0); + total += (c._weapons[INV_ITEMS_TOTAL - 1].empty() ? 0 : 1) + + (c._armor[INV_ITEMS_TOTAL - 1].empty() ? 0 : 1) + + (c._accessories[INV_ITEMS_TOTAL - 1].empty() ? 0 : 1) + + (c._misc[INV_ITEMS_TOTAL - 1].empty() ? 0 : 1); } return total == (_activeParty.size() * NUM_ITEM_CATEGORIES); |