diff options
author | Stijn Buys <ingar@osirion.org> | 2010-09-19 22:49:55 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-09-19 22:49:55 +0000 |
commit | e8f7c4a06fce9e41fb23ffc42a566501a78210cb (patch) | |
tree | 3adf0b1f3eae778e9645450d0e51821142f7983b /src/core/inventory.cc | |
parent | cc18095cded14f5e7e3f049e47fca2224134b647 (diff) |
player can only sell cargo on bases that allow it, trademenu layout updates
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 8f8c41a..03cd21e 100644 --- a/src/core/inventory.cc +++ b/src/core/inventory.cc @@ -65,10 +65,10 @@ void Inventory::remove(Item *item) } } -Item *Inventory::find(const Info *info) +Item *Inventory::find(const Info *info) const { // sarch the inventory for a specified item type - for (Items::iterator it = inventory_items.begin(); it != inventory_items.end(); it++) { + for (Items::const_iterator it = inventory_items.begin(); it != inventory_items.end(); it++) { Item *item = (*it); if (item->info() == info) { return item; |