diff options
Diffstat (limited to 'src/core/inventory.cc')
-rw-r--r-- | src/core/inventory.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/inventory.cc b/src/core/inventory.cc index a58664c..e1a74dc 100644 --- a/src/core/inventory.cc +++ b/src/core/inventory.cc @@ -43,12 +43,12 @@ void Inventory::remove(Item *item) } } -Item *Inventory::find(unsigned int const class_id, unsigned int const info_id) +Item *Inventory::find(const Info *info) { // sarch the inventory for a specified item type for (Items::iterator it = inventory_items.begin(); it != inventory_items.end(); it++) { Item *item = (*it); - if ((item->class_id() == class_id) && (item->info_id() == info_id )) { + if (item->info() == info) { return item; } } |