summaryrefslogtreecommitdiff
path: root/src/playerinfo.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-03 21:20:31 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-03 21:20:31 +0300
commitcb573ac24373a908ff549c35c3a80dd31b2fdea5 (patch)
treee63d24c33a760fc6d408a09900fc1e02dc603c00 /src/playerinfo.cpp
parenta1bd0179b28fa93c771bc5602f64746878f0ffad (diff)
downloadmv-cb573ac24373a908ff549c35c3a80dd31b2fdea5.tar.gz
mv-cb573ac24373a908ff549c35c3a80dd31b2fdea5.tar.bz2
mv-cb573ac24373a908ff549c35c3a80dd31b2fdea5.tar.xz
mv-cb573ac24373a908ff549c35c3a80dd31b2fdea5.zip
add drag and drop support between inventory and storage.
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)