summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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")
}