summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 21:22:22 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 21:22:22 +0300
commit6c3615556a5deaaced9cb34dfb23888b2e2bbfa7 (patch)
tree9afcf2c2743011aeb0723ee90eb555ef2dfd5b76 /src
parentfd229a024de7244181e184d736a610645f32db0d (diff)
downloadmanaverse-6c3615556a5deaaced9cb34dfb23888b2e2bbfa7.tar.gz
manaverse-6c3615556a5deaaced9cb34dfb23888b2e2bbfa7.tar.bz2
manaverse-6c3615556a5deaaced9cb34dfb23888b2e2bbfa7.tar.xz
manaverse-6c3615556a5deaaced9cb34dfb23888b2e2bbfa7.zip
Use CREATEWIDGET macro in npchandler.
Diffstat (limited to 'src')
-rw-r--r--src/net/tmwa/npchandler.cpp5
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);