diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 22:17:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 22:17:35 +0300 |
commit | cac974e6cdb587fe99df5a747510efff3805b382 (patch) | |
tree | ad40e24436f79a43826f5b254fd86f508b6908ea /src/net/eathena | |
parent | 2554eb893ebeffdeb9e0377f3cfe576c821d3b0d (diff) | |
download | plus-cac974e6cdb587fe99df5a747510efff3805b382.tar.gz plus-cac974e6cdb587fe99df5a747510efff3805b382.tar.bz2 plus-cac974e6cdb587fe99df5a747510efff3805b382.tar.xz plus-cac974e6cdb587fe99df5a747510efff3805b382.zip |
Use CREATEWIDGET macro in npchandler.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/npchandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp index 939d35c10..e8a7daf8b 100644 --- a/src/net/eathena/npchandler.cpp +++ b/src/net/eathena/npchandler.cpp @@ -28,6 +28,8 @@ #include "gui/windows/npcdialog.h" +#include "gui/widgets/createwidget.h" + #include "net/eathena/messageout.h" #include "net/eathena/protocol.h" @@ -316,8 +318,7 @@ BeingId NpcHandler::getNpc(Net::MessageIn &msg) } else { - mDialog = new NpcDialog(npcId); - mDialog->postInit(); + CREATEWIDGETV(mDialog, NpcDialog, npcId); mDialog->saveCamera(); if (localPlayer) localPlayer->stopWalking(false); |