X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FInventory.cpp;h=d8ba20c08af5a35c0af1d1311ab2474259634449;hb=ec18252fd6199492c40b98abab289c375a5a41b7;hp=e7dbe726e356ca2408669d2e88e8e42cec5213ea;hpb=9c03a930498206bfa05de06ed838a74c8dd84a24;p=l2e.git diff --git a/src/common/Inventory.cpp b/src/common/Inventory.cpp index e7dbe72..d8ba20c 100644 --- a/src/common/Inventory.cpp +++ b/src/common/Inventory.cpp @@ -53,6 +53,10 @@ void Inventory::Remove(const Item *item, int count) { } } +void Inventory::RemoveAll(const Item *item) { + Remove(item, 255); +} + Inventory::Entry *Inventory::FindItem(const Item *item) { for (int i(0); i < MaxItems(); ++i) { if (item == ItemAt(i)) {