summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa')
-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);