summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-28 19:19:02 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-28 19:19:02 +0300
commit601607488ae529b7dfd9bd55afd0e89e42762281 (patch)
tree0006e7c0f7546452037362a10750f3f17e1924aa /src/gui
parentb29b80ccc9a22d8d4b3acf4b251bc2388b82027f (diff)
downloadmanaverse-601607488ae529b7dfd9bd55afd0e89e42762281.tar.gz
manaverse-601607488ae529b7dfd9bd55afd0e89e42762281.tar.bz2
manaverse-601607488ae529b7dfd9bd55afd0e89e42762281.tar.xz
manaverse-601607488ae529b7dfd9bd55afd0e89e42762281.zip
Dehardcode default spells/commands.
Read commands from defaultcommands.xml. Also improve a bit saving commands in spellmanager.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windowmanager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp
index bd68f09bc..c786fa501 100644
--- a/src/gui/windowmanager.cpp
+++ b/src/gui/windowmanager.cpp
@@ -26,6 +26,7 @@
#include "configuration.h"
#include "game.h"
#include "settings.h"
+#include "spellshortcut.h"
#include "touchmanager.h"
#include "gui/gui.h"
@@ -124,6 +125,8 @@ void WindowManager::deleteWindows()
delete2(helpWindow);
delete2(setupWindow);
delete2(userPalette);
+ delete2(spellManager)
+ delete2(spellShortcut)
}
void WindowManager::initTitle()