diff options
author | Simon Edwardsson <simon@crossnet.se> | 2004-10-02 15:50:55 +0000 |
---|---|---|
committer | Simon Edwardsson <simon@crossnet.se> | 2004-10-02 15:50:55 +0000 |
commit | 91fbf564fe4a28a93122d6a8a6a1df9d119dce91 (patch) | |
tree | e1c8025714fb70c40f4e2e63117e1a86246f8b17 /src/gui/inventory.h | |
parent | 572f377ea2eca51469e06109503e9f4bcb198166 (diff) | |
download | mana-91fbf564fe4a28a93122d6a8a6a1df9d119dce91.tar.gz mana-91fbf564fe4a28a93122d6a8a6a1df9d119dce91.tar.bz2 mana-91fbf564fe4a28a93122d6a8a6a1df9d119dce91.tar.xz mana-91fbf564fe4a28a93122d6a8a6a1df9d119dce91.zip |
Sell in shops does now works, and you can choose amount :) (hope I don't break anything)
Diffstat (limited to 'src/gui/inventory.h')
-rw-r--r-- | src/gui/inventory.h | 1 |
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 |