summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 23:26:19 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 23:26:19 +0300
commit1e59c7e61474e89e08dcb40134d8be5f5ae76bf4 (patch)
treeec8c3f6eed27fea2d865adadcf9c87907199bb56 /src/net/eathena
parent5794558186a1b98d3906224dab98403352d523d9 (diff)
downloadplus-1e59c7e61474e89e08dcb40134d8be5f5ae76bf4.tar.gz
plus-1e59c7e61474e89e08dcb40134d8be5f5ae76bf4.tar.bz2
plus-1e59c7e61474e89e08dcb40134d8be5f5ae76bf4.tar.xz
plus-1e59c7e61474e89e08dcb40134d8be5f5ae76bf4.zip
Use CREATEWIDGET macro in markethandler.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/markethandler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/eathena/markethandler.cpp b/src/net/eathena/markethandler.cpp
index ec9e3c095..3157878ea 100644
--- a/src/net/eathena/markethandler.cpp
+++ b/src/net/eathena/markethandler.cpp
@@ -26,6 +26,8 @@
#include "gui/windows/buydialog.h"
+#include "gui/widgets/createwidget.h"
+
#include "net/eathena/messageout.h"
#include "net/eathena/protocol.h"
@@ -75,8 +77,7 @@ void MarketHandler::processMarketOpen(Net::MessageIn &msg)
{
const int len = (msg.readInt16("len") - 4) / 13;
- mBuyDialog = new BuyDialog(fromInt(BuyDialog::Market, BeingId));
- mBuyDialog->postInit();
+ CREATEWIDGETV(mBuyDialog, BuyDialog, fromInt(BuyDialog::Market, BeingId));
mBuyDialog->setMoney(PlayerInfo::getAttribute(Attributes::MONEY));
for (int f = 0; f < len; f ++)