diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 22:35:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 22:35:15 +0300 |
commit | 916feef7242803871e7137ed830999319f897708 (patch) | |
tree | bf81cfbb040436520d85d18673414543d9bdb4a3 /src/net/eathena/buyingstorehandler.cpp | |
parent | 78e99316ccfee1c38ec19cad8475c7e6e0e2e690 (diff) | |
download | manaplus-916feef7242803871e7137ed830999319f897708.tar.gz manaplus-916feef7242803871e7137ed830999319f897708.tar.bz2 manaplus-916feef7242803871e7137ed830999319f897708.tar.xz manaplus-916feef7242803871e7137ed830999319f897708.zip |
Use CREATEWIDGET macro in beingstorehandler.
Diffstat (limited to 'src/net/eathena/buyingstorehandler.cpp')
-rw-r--r-- | src/net/eathena/buyingstorehandler.cpp | 5 |
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 ++) |