From cac974e6cdb587fe99df5a747510efff3805b382 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 22:17:35 +0300 Subject: Use CREATEWIDGET macro in npchandler. --- src/net/eathena/npchandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/net/eathena') 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); -- cgit v1.2.3-70-g09d2