summaryrefslogtreecommitdiff
path: root/src/gui/inventory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/inventory.h')
-rw-r--r--src/gui/inventory.h1
1 files changed, 1 insertions, 0 deletions
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