diff options
Diffstat (limited to 'engines/mads/inventory.h')
-rw-r--r-- | engines/mads/inventory.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/mads/inventory.h b/engines/mads/inventory.h index 57ae43b059..1eef0f7f82 100644 --- a/engines/mads/inventory.h +++ b/engines/mads/inventory.h @@ -67,6 +67,13 @@ public: void load(); /** + * Returns the inventory item from the player's inventory + */ + InventoryObject &getItem(int itemIndex) { + return (*this)[_inventoryList[itemIndex]]; + } + + /** * Set the associated data? pointer with an inventory object */ void setData(int objIndex, int id, const byte *p); |