From 1c496b3ccdd7bfde947aeb59eaf7aa429ccf5818 Mon Sep 17 00:00:00 2001 From: Simon Edwardsson Date: Sat, 2 Oct 2004 17:59:31 +0000 Subject: Fix the invetory items decrease thing. --- src/gui/inventory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') 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; } -- cgit v1.2.3-70-g09d2