From 916feef7242803871e7137ed830999319f897708 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 22:35:15 +0300 Subject: Use CREATEWIDGET macro in beingstorehandler. --- src/net/eathena/buyingstorehandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/net/eathena/buyingstorehandler.cpp') diff --git a/src/net/eathena/buyingstorehandler.cpp b/src/net/eathena/buyingstorehandler.cpp index 5e99994f9..9a9bfe728 100644 --- a/src/net/eathena/buyingstorehandler.cpp +++ b/src/net/eathena/buyingstorehandler.cpp @@ -30,6 +30,8 @@ #include "gui/windows/buyingstoreselldialog.h" +#include "gui/widgets/createwidget.h" + #include "listeners/arrowslistener.h" #include "listeners/buyingstoremodelistener.h" #include "listeners/buyingstoreslotslistener.h" @@ -194,10 +196,9 @@ void BuyingStoreHandler::processBuyingStoreItemsList(Net::MessageIn &msg) if (!dstBeing) return; - SellDialog *const dialog = new BuyingStoreSellDialog( + SellDialog *const dialog = CREATEWIDGETR(BuyingStoreSellDialog, dstBeing->getId(), storeId); - dialog->postInit(); dialog->setMoney(PlayerInfo::getAttribute(Attributes::MONEY)); Inventory *const inv = PlayerInfo::getInventory(); for (int f = 0; f < count; f ++) -- cgit v1.2.3-60-g2f50