From 13311c700ffbd94f28fe38654bda4bf026d2a8ce Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Fri, 18 Jul 2014 23:47:46 +0200 Subject: Clarified RemoveItem()'s comments. --- src/ItemGrid.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ItemGrid.h') diff --git a/src/ItemGrid.h b/src/ItemGrid.h index 6731b0065..8d6544792 100644 --- a/src/ItemGrid.h +++ b/src/ItemGrid.h @@ -97,7 +97,8 @@ public: */ int AddItems(cItems & a_ItemStackList, bool a_AllowNewStacks = true, int a_PrioritarySlot = -1); - /** Remove the specified item with the specified amount from the inventory. Returns the amount from the items were was removed. */ + /** Removes the specified item from the grid, as many as possible, up to a_ItemStack.m_ItemCount. + Returns the number of items that were removed. */ int RemoveItem(const cItem & a_ItemStack); /** Adds (or subtracts, if a_AddToCount is negative) to the count of items in the specified slot. -- cgit v1.2.3