diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 21:22:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 21:22:22 +0300 |
commit | 6c3615556a5deaaced9cb34dfb23888b2e2bbfa7 (patch) | |
tree | 9afcf2c2743011aeb0723ee90eb555ef2dfd5b76 /src | |
parent | fd229a024de7244181e184d736a610645f32db0d (diff) | |
download | mv-6c3615556a5deaaced9cb34dfb23888b2e2bbfa7.tar.gz mv-6c3615556a5deaaced9cb34dfb23888b2e2bbfa7.tar.bz2 mv-6c3615556a5deaaced9cb34dfb23888b2e2bbfa7.tar.xz mv-6c3615556a5deaaced9cb34dfb23888b2e2bbfa7.zip |
Use CREATEWIDGET macro in npchandler.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/tmwa/npchandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/tmwa/npchandler.cpp b/src/net/tmwa/npchandler.cpp index 175adabb9..61a4cf188 100644 --- a/src/net/tmwa/npchandler.cpp +++ b/src/net/tmwa/npchandler.cpp @@ -26,6 +26,8 @@ #include "gui/windows/npcdialog.h" +#include "gui/widgets/createwidget.h" + #include "net/serverfeatures.h" #include "net/tmwa/messageout.h" @@ -276,8 +278,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); |