From 2e79d1afddfabbc17c8e70f1a4c3cf78aad038c9 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 26 Oct 2010 18:33:20 +0000 Subject: [PATCH] Allow negative counts for writing off tracks --- source/shoppinglist/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/shoppinglist/main.cpp b/source/shoppinglist/main.cpp index 449ef8b..f711222 100644 --- a/source/shoppinglist/main.cpp +++ b/source/shoppinglist/main.cpp @@ -27,7 +27,7 @@ private: private: ShoppingList &sl; - void track(unsigned, unsigned); + void track(unsigned, int); }; class LayoutLoader: public DataFile::Loader @@ -124,7 +124,7 @@ ShoppingList::InventoryLoader::InventoryLoader(ShoppingList &s): add("track", &InventoryLoader::track); } -void ShoppingList::InventoryLoader::track(unsigned part, unsigned count) +void ShoppingList::InventoryLoader::track(unsigned part, int count) { sl.inventory[part]+=count; } -- 2.45.2