diff options
Diffstat (limited to 'src/net/ea/playerhandler.cpp')
-rw-r--r-- | src/net/ea/playerhandler.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp index 309888d50..c52febaf9 100644 --- a/src/net/ea/playerhandler.cpp +++ b/src/net/ea/playerhandler.cpp @@ -30,6 +30,7 @@ #include "gui/ministatuswindow.h" #include "gui/okdialog.h" +#include "gui/npcdialog.h" #include "gui/skilldialog.h" #include "gui/statuswindow.h" #include "gui/viewport.h" @@ -77,9 +78,7 @@ namespace if (viewport) viewport->closePopupMenu(); - Net::NpcHandler *const handler = Net::getNpcHandler(); - if (handler) - handler->clearDialogs(); + NpcDialog::clearDialogs(); if (player_node) player_node->respawn(); } |