summaryrefslogtreecommitdiff
path: root/src/listeners/playerdeathlistener.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/listeners/playerdeathlistener.h')
-rw-r--r--src/listeners/playerdeathlistener.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/listeners/playerdeathlistener.h b/src/listeners/playerdeathlistener.h
index 4c9644d68..67eb031a0 100644
--- a/src/listeners/playerdeathlistener.h
+++ b/src/listeners/playerdeathlistener.h
@@ -26,7 +26,7 @@
#include "being/localplayer.h"
#include "gui/dialogsmanager.h"
-#include "gui/viewport.h"
+#include "gui/popupmanager.h"
#include "gui/windows/okdialog.h"
#include "gui/windows/npcdialog.h"
@@ -51,8 +51,8 @@ struct PlayerDeathListener final : public ActionListener
DialogsManager::closeDialogs();
- if (viewport)
- viewport->closePopupMenu();
+ if (popupManager)
+ popupManager->closePopupMenu();
NpcDialog::clearDialogs();
if (localPlayer)