From cb573ac24373a908ff549c35c3a80dd31b2fdea5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 3 Jul 2013 21:20:31 +0300 Subject: add drag and drop support between inventory and storage. --- src/playerinfo.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/playerinfo.cpp') 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) -- cgit v1.2.3-70-g09d2