diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-03 21:20:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-03 21:20:31 +0300 |
commit | cb573ac24373a908ff549c35c3a80dd31b2fdea5 (patch) | |
tree | e63d24c33a760fc6d408a09900fc1e02dc603c00 /src/playerinfo.cpp | |
parent | a1bd0179b28fa93c771bc5602f64746878f0ffad (diff) | |
download | plus-cb573ac24373a908ff549c35c3a80dd31b2fdea5.tar.gz plus-cb573ac24373a908ff549c35c3a80dd31b2fdea5.tar.bz2 plus-cb573ac24373a908ff549c35c3a80dd31b2fdea5.tar.xz plus-cb573ac24373a908ff549c35c3a80dd31b2fdea5.zip |
add drag and drop support between inventory and storage.
Diffstat (limited to 'src/playerinfo.cpp')
-rw-r--r-- | src/playerinfo.cpp | 6 |
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) |