From 4293e8854a30443e4d5818fc55df404976dbfd9b Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 14 Nov 2009 14:14:21 +0000 Subject: update the info system, fixes network info exchange --- src/core/inventory.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/inventory.cc') 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; } } -- cgit v1.2.3