From f8c3743991a6897c7133bf35dc2699b8b5f9df7c Mon Sep 17 00:00:00 2001 From: Kahrl Date: Mon, 19 Mar 2012 03:04:16 +0100 Subject: added PlayerSAO and RemotePlayer, removed ServerRemotePlayer --- src/inventory.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/inventory.cpp') diff --git a/src/inventory.cpp b/src/inventory.cpp index 056cf552d..3d6707f60 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -795,6 +795,18 @@ void Inventory::clear() m_lists.clear(); } +void Inventory::clearContents() +{ + for(u32 i=0; igetSize(); j++) + { + list->deleteItem(j); + } + } +} + Inventory::Inventory(IItemDefManager *itemdef) { m_itemdef = itemdef; -- cgit v1.2.3