summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 22:17:35 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 22:17:35 +0300
commitcac974e6cdb587fe99df5a747510efff3805b382 (patch)
treead40e24436f79a43826f5b254fd86f508b6908ea /src/net
parent2554eb893ebeffdeb9e0377f3cfe576c821d3b0d (diff)
downloadManaVerse-cac974e6cdb587fe99df5a747510efff3805b382.tar.gz
ManaVerse-cac974e6cdb587fe99df5a747510efff3805b382.tar.bz2
ManaVerse-cac974e6cdb587fe99df5a747510efff3805b382.tar.xz
ManaVerse-cac974e6cdb587fe99df5a747510efff3805b382.zip
Use CREATEWIDGET macro in npchandler.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/npchandler.cpp5
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);