diff options
Diffstat (limited to 'engines/xeen/item.cpp')
-rw-r--r-- | engines/xeen/item.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/item.cpp b/engines/xeen/item.cpp index 3fe2896583..a79efc085d 100644 --- a/engines/xeen/item.cpp +++ b/engines/xeen/item.cpp @@ -217,7 +217,7 @@ bool InventoryItems::discardItem(int itemIndex) { void InventoryItems::sort() { for (uint idx = 0; idx < size(); ++idx) { - if (operator[](idx)._id == 0) { + if (operator[](idx).empty()) { // Found empty slot operator[](idx).clear(); @@ -272,7 +272,7 @@ void InventoryItems::enchantItem(int itemIndex, int amount) { bool InventoryItems::isFull() const { assert(size() == INV_ITEMS_TOTAL); - return operator[](size() - 1)._id != 0; + return !operator[](size() - 1).empty(); } void InventoryItems::capitalizeItem(Common::String &name) { |