summaryrefslogtreecommitdiff
path: root/src/net/eathena/pethandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 22:19:52 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 22:19:52 +0300
commit78e99316ccfee1c38ec19cad8475c7e6e0e2e690 (patch)
tree6df2d8469e8a21b020d4aaaf2ba32b84f61762f7 /src/net/eathena/pethandler.cpp
parentcac974e6cdb587fe99df5a747510efff3805b382 (diff)
downloadplus-78e99316ccfee1c38ec19cad8475c7e6e0e2e690.tar.gz
plus-78e99316ccfee1c38ec19cad8475c7e6e0e2e690.tar.bz2
plus-78e99316ccfee1c38ec19cad8475c7e6e0e2e690.tar.xz
plus-78e99316ccfee1c38ec19cad8475c7e6e0e2e690.zip
Use CREATEWIDGET macro in pethandler.
Diffstat (limited to 'src/net/eathena/pethandler.cpp')
-rw-r--r--src/net/eathena/pethandler.cpp5
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 ++)
{