]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Inventory.cpp
implemented inventory item swapping
[l2e.git] / src / common / Inventory.cpp
index 6a6af81f3b52fe3dd0f94875cde38f00689f016b..e7dbe726e356ca2408669d2e88e8e42cec5213ea 100644 (file)
@@ -83,4 +83,8 @@ bool Inventory::Entry::Less(const Entry &lhs, const Entry &rhs) {
        }
 }
 
+void Inventory::SwapEntriesAt(int lhs, int rhs) {
+       std::swap(entries[lhs], entries[rhs]);
+}
+
 }