diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 22:37:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 22:37:53 +0300 |
commit | 5849b9537cd81dfccfc283c20a18d905ea7bf982 (patch) | |
tree | 93cf049465f9bbf2ef6ed8a06c823279d11f0925 /src/net/eathena | |
parent | 916feef7242803871e7137ed830999319f897708 (diff) | |
download | manaverse-5849b9537cd81dfccfc283c20a18d905ea7bf982.tar.gz manaverse-5849b9537cd81dfccfc283c20a18d905ea7bf982.tar.bz2 manaverse-5849b9537cd81dfccfc283c20a18d905ea7bf982.tar.xz manaverse-5849b9537cd81dfccfc283c20a18d905ea7bf982.zip |
Use CREATEWIDGET macro in cashshophandler.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/cashshophandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/eathena/cashshophandler.cpp b/src/net/eathena/cashshophandler.cpp index 785e3f62a..23d6ab66d 100644 --- a/src/net/eathena/cashshophandler.cpp +++ b/src/net/eathena/cashshophandler.cpp @@ -24,6 +24,8 @@ #include "gui/windows/buydialog.h" +#include "gui/widgets/createwidget.h" + #include "net/eathena/messageout.h" #include "net/eathena/protocol.h" @@ -91,8 +93,7 @@ void CashShopHandler::processCashShopOpen(Net::MessageIn &msg) { const int count = (msg.readInt16("len") - 12) / 11; - mBuyDialog = new BuyDialog(fromInt(BuyDialog::Cash, BeingId)); - mBuyDialog->postInit(); + CREATEWIDGETV(mBuyDialog, BuyDialog, fromInt(BuyDialog::Cash, BeingId)); mBuyDialog->setMoney(PlayerInfo::getAttribute(Attributes::MONEY)); msg.readInt32("cash points"); |