summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 20:57:30 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 20:57:30 +0300
commit308f903d2de25ddd99b70e9d8c8ae28f05f3694d (patch)
treed02cd0b015d6a869b55a479e7751e7eea1de2bbb /src/net
parent038dc957154f565cdac1d88ecf92c711532eaa9a (diff)
downloadplus-308f903d2de25ddd99b70e9d8c8ae28f05f3694d.tar.gz
plus-308f903d2de25ddd99b70e9d8c8ae28f05f3694d.tar.bz2
plus-308f903d2de25ddd99b70e9d8c8ae28f05f3694d.tar.xz
plus-308f903d2de25ddd99b70e9d8c8ae28f05f3694d.zip
Use CREATEWIDGET macro in inventoryhandler.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ea/inventoryhandler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp
index e95f62d3d..44b73928f 100644
--- a/src/net/ea/inventoryhandler.cpp
+++ b/src/net/ea/inventoryhandler.cpp
@@ -28,6 +28,8 @@
#include "enums/equipslot.h"
+#include "gui/widgets/createwidget.h"
+
#include "net/messagein.h"
#include "net/ea/eaprotocol.h"
@@ -266,8 +268,7 @@ void InventoryHandler::processPlayerStorageStatus(Net::MessageIn &msg)
if (!storageWindow)
{
- storageWindow = new InventoryWindow(mStorage);
- storageWindow->postInit();
+ CREATEWIDGETV(storageWindow, InventoryWindow, mStorage);
}
BLOCK_END("InventoryHandler::processPlayerStorageStatus")
}