]> git.tdb.fi Git - r2c2.git/commitdiff
Allow negative counts for writing off tracks
authorMikko Rasa <tdb@tdb.fi>
Tue, 26 Oct 2010 18:33:20 +0000 (18:33 +0000)
committerMikko Rasa <tdb@tdb.fi>
Tue, 26 Oct 2010 18:33:20 +0000 (18:33 +0000)
source/shoppinglist/main.cpp

index 449ef8be4d1f6042fec6a4be625d97ca651193a9..f71122239d3eb077e026809e14ecd4e3ccebd223 100644 (file)
@@ -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;
 }