diff options
-rw-r--r-- | src/net/eathena/npchandler.cpp | 5 |
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); |