diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 22:19:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 22:19:52 +0300 |
commit | 78e99316ccfee1c38ec19cad8475c7e6e0e2e690 (patch) | |
tree | 6df2d8469e8a21b020d4aaaf2ba32b84f61762f7 /src/net/eathena | |
parent | cac974e6cdb587fe99df5a747510efff3805b382 (diff) | |
download | mv-78e99316ccfee1c38ec19cad8475c7e6e0e2e690.tar.gz mv-78e99316ccfee1c38ec19cad8475c7e6e0e2e690.tar.bz2 mv-78e99316ccfee1c38ec19cad8475c7e6e0e2e690.tar.xz mv-78e99316ccfee1c38ec19cad8475c7e6e0e2e690.zip |
Use CREATEWIDGET macro in pethandler.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/pethandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp index f737ba6a1..0b31295f8 100644 --- a/src/net/eathena/pethandler.cpp +++ b/src/net/eathena/pethandler.cpp @@ -29,6 +29,8 @@ #include "gui/windows/eggselectiondialog.h" +#include "gui/widgets/createwidget.h" + #include "gui/widgets/tabs/chat/chattab.h" #include "net/inventoryhandler.h" @@ -209,8 +211,7 @@ void PetHandler::processEggsList(Net::MessageIn &msg) inventoryHandler->selectEgg(item); return; } - SellDialog *const dialog = new EggSelectionDialog; - dialog->postInit(); + SellDialog *const dialog = CREATEWIDGETR0(EggSelectionDialog); for (int f = 0; f < count; f ++) { |