summaryrefslogtreecommitdiff
path: root/src/gui/inventory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/inventory.cpp')
-rw-r--r--src/gui/inventory.cpp2
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;
}