summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index a04a20512..a4d77298d 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -54,7 +54,9 @@
#include "gui/charselectdialog.h"
#include "gui/confirmdialog.h"
#include "gui/connectiondialog.h"
+#include "gui/didyouknowwindow.h"
#include "gui/gui.h"
+#include "gui/helpwindow.h"
#include "gui/logindialog.h"
#include "gui/okdialog.h"
#include "gui/quitdialog.h"
@@ -631,6 +633,8 @@ void Client::gameInit()
userPalette = new UserPalette;
setupWindow = new Setup;
+ helpWindow = new HelpWindow;
+ didYouKnowWindow = new DidYouKnowWindow;
soundManager.playMusic(branding.getValue(
"loginMusic", "Magick - Real.ogg"));
@@ -746,6 +750,11 @@ void Client::gameClear()
logger->log1("Quitting1");
config.removeListeners(this);
+ userPalette = nullptr;
+ setupWindow = nullptr;
+ helpWindow = nullptr;
+ didYouKnowWindow = nullptr;
+
SDL_RemoveTimer(mLogicCounterId);
SDL_RemoveTimer(mSecondsCounterId);