From 91fbf564fe4a28a93122d6a8a6a1df9d119dce91 Mon Sep 17 00:00:00 2001 From: Simon Edwardsson Date: Sat, 2 Oct 2004 15:50:55 +0000 Subject: Sell in shops does now works, and you can choose amount :) (hope I don't break anything) --- src/gui/inventory.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui/inventory.h') diff --git a/src/gui/inventory.h b/src/gui/inventory.h index ee16d56b..0a8fd600 100644 --- a/src/gui/inventory.h +++ b/src/gui/inventory.h @@ -60,6 +60,7 @@ class TmwInventory { int change_quantity(int index, int quantity); // change number of a item int increase_quantity(int index, int quantity); // increase quantity of a item int use_item(int index, int id); + int quantityForIndex(int index) { return items[index].quantity; } //END API itemHolder items[INVENTORY_SIZE]; // this is the holder of items -- cgit v1.2.3-70-g09d2