aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/xeen/item.cpp')
-rw-r--r--engines/xeen/item.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/xeen/item.cpp b/engines/xeen/item.cpp
index 722c2497eb..e5e852c6b7 100644
--- a/engines/xeen/item.cpp
+++ b/engines/xeen/item.cpp
@@ -229,6 +229,7 @@ void InventoryItems::enchantItem(int itemIndex, int amount) {
}
bool InventoryItems::isFull() const {
+ assert(size() == INV_ITEMS_TOTAL);
return operator[](size() - 1)._id != 0;
}