summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 22:37:53 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 22:37:53 +0300
commit5849b9537cd81dfccfc283c20a18d905ea7bf982 (patch)
tree93cf049465f9bbf2ef6ed8a06c823279d11f0925 /src/net
parent916feef7242803871e7137ed830999319f897708 (diff)
downloadplus-5849b9537cd81dfccfc283c20a18d905ea7bf982.tar.gz
plus-5849b9537cd81dfccfc283c20a18d905ea7bf982.tar.bz2
plus-5849b9537cd81dfccfc283c20a18d905ea7bf982.tar.xz
plus-5849b9537cd81dfccfc283c20a18d905ea7bf982.zip
Use CREATEWIDGET macro in cashshophandler.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/cashshophandler.cpp5
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");