diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 23:26:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 23:26:19 +0300 |
commit | 1e59c7e61474e89e08dcb40134d8be5f5ae76bf4 (patch) | |
tree | ec8c3f6eed27fea2d865adadcf9c87907199bb56 /src/net/eathena/markethandler.cpp | |
parent | 5794558186a1b98d3906224dab98403352d523d9 (diff) | |
download | manaverse-1e59c7e61474e89e08dcb40134d8be5f5ae76bf4.tar.gz manaverse-1e59c7e61474e89e08dcb40134d8be5f5ae76bf4.tar.bz2 manaverse-1e59c7e61474e89e08dcb40134d8be5f5ae76bf4.tar.xz manaverse-1e59c7e61474e89e08dcb40134d8be5f5ae76bf4.zip |
Use CREATEWIDGET macro in markethandler.
Diffstat (limited to 'src/net/eathena/markethandler.cpp')
-rw-r--r-- | src/net/eathena/markethandler.cpp | 5 |
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 ++) |