summaryrefslogtreecommitdiff
path: root/src/playerinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/playerinfo.cpp')
-rw-r--r--src/playerinfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/playerinfo.cpp b/src/playerinfo.cpp
index 4e780f4df..eb48c4b30 100644
--- a/src/playerinfo.cpp
+++ b/src/playerinfo.cpp
@@ -34,6 +34,7 @@
#include "resources/iteminfo.h"
+#include "net/inventoryhandler.h"
#include "net/playerhandler.h"
#include "debug.h"
@@ -202,6 +203,11 @@ Inventory *getInventory()
return mInventory;
}
+Inventory *getStorageInventory()
+{
+ return Net::getInventoryHandler()->getStorage();
+}
+
void clearInventory()
{
if (mEquipment)