]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Inventory.cpp
implemented item dropping
[l2e.git] / src / common / Inventory.cpp
index e7dbe726e356ca2408669d2e88e8e42cec5213ea..d8ba20c08af5a35c0af1d1311ab2474259634449 100644 (file)
@@ -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)) {