diff options
Diffstat (limited to 'engines/xeen/character.cpp')
-rw-r--r-- | engines/xeen/character.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/xeen/character.cpp b/engines/xeen/character.cpp index 737c36ab30..e005a35f13 100644 --- a/engines/xeen/character.cpp +++ b/engines/xeen/character.cpp @@ -228,6 +228,14 @@ void InventoryItems::enchantItem(int itemIndex, int amount) { ErrorScroll::show(vm, Common::String::format(NOT_ENCHANTABLE, SPELL_FAILED)); } +/** + * Return if the given inventory items list is full + */ +bool InventoryItems::isFull() const { + return operator[](size() - 1)._id != 0; +} + + /*------------------------------------------------------------------------*/ /** |