diff options
author | Stijn Buys <ingar@osirion.org> | 2009-11-14 14:14:21 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-11-14 14:14:21 +0000 |
commit | 4293e8854a30443e4d5818fc55df404976dbfd9b (patch) | |
tree | 816665ba37acfd5a39c0544c3b2acbf04c8c5d3d /src/core/inventory.cc | |
parent | a993d31910b63a1f897e470842934e6ffefad32c (diff) |
update the info system, fixes network info exchange
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; } } |