summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/spellmanager.cpp8
-rw-r--r--src/spellmanager.h2
2 files changed, 3 insertions, 7 deletions
diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp
index 79ec80a40..2020dae11 100644
--- a/src/spellmanager.cpp
+++ b/src/spellmanager.cpp
@@ -250,13 +250,9 @@ TextCommand *SpellManager::createNewSpell() const
return new TextCommand(CAST_U32(mSpellsVector.size()));
}
-void SpellManager::load(const bool oldConfig)
+void SpellManager::load()
{
- const Configuration *cfg;
- if (oldConfig)
- cfg = &config;
- else
- cfg = &serverConfig;
+ const Configuration *cfg = &serverConfig;
delete_all(mSpells);
mSpells.clear();
diff --git a/src/spellmanager.h b/src/spellmanager.h
index 814cbf5db..809e9efa2 100644
--- a/src/spellmanager.h
+++ b/src/spellmanager.h
@@ -56,7 +56,7 @@ class SpellManager final
void invoke(const int spellId) const;
- void load(const bool oldConfig = false);
+ void load();
void save() const;