summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 22:35:15 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 22:35:15 +0300
commit916feef7242803871e7137ed830999319f897708 (patch)
treebf81cfbb040436520d85d18673414543d9bdb4a3 /src
parent78e99316ccfee1c38ec19cad8475c7e6e0e2e690 (diff)
downloadmanaverse-916feef7242803871e7137ed830999319f897708.tar.gz
manaverse-916feef7242803871e7137ed830999319f897708.tar.bz2
manaverse-916feef7242803871e7137ed830999319f897708.tar.xz
manaverse-916feef7242803871e7137ed830999319f897708.zip
Use CREATEWIDGET macro in beingstorehandler.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/buyingstorehandler.cpp5
1 files changed, 3 insertions, 2 deletions
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 ++)