diff options
author | Paul Gilbert | 2018-03-22 19:17:54 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-03-22 19:17:54 -0400 |
commit | 808090792749e4f6f819373f20225fa055a5f932 (patch) | |
tree | 0a021d658c92b764b0d52e892c4be05f0be0feec /engines/xeen/item.h | |
parent | d725d78ec5e58d84433634ce1d6171c722df46bc (diff) | |
download | scummvm-rg350-808090792749e4f6f819373f20225fa055a5f932.tar.gz scummvm-rg350-808090792749e4f6f819373f20225fa055a5f932.tar.bz2 scummvm-rg350-808090792749e4f6f819373f20225fa055a5f932.zip |
XEEN: Fix bought items going into correct character's inventory
Diffstat (limited to 'engines/xeen/item.h')
-rw-r--r-- | engines/xeen/item.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/xeen/item.h b/engines/xeen/item.h index c79de0c282..044d73e368 100644 --- a/engines/xeen/item.h +++ b/engines/xeen/item.h @@ -116,6 +116,11 @@ public: void clear(); /** + * Handles copying items from one character to another + */ + InventoryItems &operator=(const InventoryItems &src); + + /** * Return whether a given item passes class-based usage restrictions * @param itemId Item Index * @param suppressError If true, no dialog is shown if the item doesn't pass restrictions @@ -269,6 +274,11 @@ public: InventoryItems &operator[](ItemCategory category); /** + * Returns the inventory items for a given category + */ + const InventoryItems &operator[](ItemCategory category) const; + + /** * Breaks all the items in a given character's inventory */ void breakAllItems(); |