summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 8d6440b7..9035ba6a 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -203,6 +203,8 @@ static void destroyGuiWindows()
del_0(specialsWindow)
del_0(socialWindow)
+ Mana::Event::trigger("NPC", "CloseAll"); // Cleanup remaining NPC dialogs
+
Mana::Event::trigger("Game", "GuiWindowsUnloaded");
}
@@ -260,6 +262,8 @@ Game::Game():
Game::~Game()
{
+ Mana::Event::trigger("Game", "Destructing");
+
delete mWindowMenu;
destroyGuiWindows();