From: Mikko Rasa Date: Tue, 26 Oct 2010 18:33:20 +0000 (+0000) Subject: Allow negative counts for writing off tracks X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=2e79d1afddfabbc17c8e70f1a4c3cf78aad038c9;p=r2c2.git Allow negative counts for writing off tracks --- 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; }