summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 21:24:01 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 21:24:01 +0300
commit2554eb893ebeffdeb9e0377f3cfe576c821d3b0d (patch)
tree59f8201785d6dcd0856d0e5df3d58d554189c6c1 /src/net/eathena
parent6c3615556a5deaaced9cb34dfb23888b2e2bbfa7 (diff)
downloadmv-2554eb893ebeffdeb9e0377f3cfe576c821d3b0d.tar.gz
mv-2554eb893ebeffdeb9e0377f3cfe576c821d3b0d.tar.bz2
mv-2554eb893ebeffdeb9e0377f3cfe576c821d3b0d.tar.xz
mv-2554eb893ebeffdeb9e0377f3cfe576c821d3b0d.zip
Use CREATEWIDGET macro in vendinghandler.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/vendinghandler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/eathena/vendinghandler.cpp b/src/net/eathena/vendinghandler.cpp
index f53a7b861..48b301a77 100644
--- a/src/net/eathena/vendinghandler.cpp
+++ b/src/net/eathena/vendinghandler.cpp
@@ -28,6 +28,8 @@
#include "gui/windows/buydialog.h"
+#include "gui/widgets/createwidget.h"
+
#include "listeners/vendingmodelistener.h"
#include "listeners/vendingslotslistener.h"
@@ -140,8 +142,7 @@ void VendingHandler::processItemsList(Net::MessageIn &msg)
Being *const being = actorManager->findBeing(id);
if (!being)
return;
- mBuyDialog = new BuyDialog(being->getName());
- mBuyDialog->postInit();
+ CREATEWIDGETV(mBuyDialog, BuyDialog, being->getName());
mBuyDialog->setMoney(PlayerInfo::getAttribute(Attributes::MONEY));
msg.readInt32("vender id");
for (int f = 0; f < count; f ++)