diff options
author | Simon Edwardsson <simon@crossnet.se> | 2004-10-02 17:59:31 +0000 |
---|---|---|
committer | Simon Edwardsson <simon@crossnet.se> | 2004-10-02 17:59:31 +0000 |
commit | 1c496b3ccdd7bfde947aeb59eaf7aa429ccf5818 (patch) | |
tree | 0a04df96d91978ee925fbea80081dfcf4fa9f8aa /src/gui/inventory.cpp | |
parent | bbaf3dff1287cba348b047998a632fc000114c3d (diff) | |
download | mana-client-1c496b3ccdd7bfde947aeb59eaf7aa429ccf5818.tar.gz mana-client-1c496b3ccdd7bfde947aeb59eaf7aa429ccf5818.tar.bz2 mana-client-1c496b3ccdd7bfde947aeb59eaf7aa429ccf5818.tar.xz mana-client-1c496b3ccdd7bfde947aeb59eaf7aa429ccf5818.zip |
Fix the invetory items decrease thing.
Diffstat (limited to 'src/gui/inventory.cpp')
-rw-r--r-- | src/gui/inventory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/inventory.cpp b/src/gui/inventory.cpp index 2bf7474a..09bf56f2 100644 --- a/src/gui/inventory.cpp +++ b/src/gui/inventory.cpp @@ -89,7 +89,7 @@ int TmwInventory::remove_item(int id) { /** Change quantity of an item */ int TmwInventory::change_quantity(int index, int quantity) { - items[index].quantity = quantity; + items[index].quantity += quantity; return 0; } |