summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/db/commandsdb.cpp21
1 files changed, 16 insertions, 5 deletions
diff --git a/src/resources/db/commandsdb.cpp b/src/resources/db/commandsdb.cpp
index 2203cbaa8..69c918f86 100644
--- a/src/resources/db/commandsdb.cpp
+++ b/src/resources/db/commandsdb.cpp
@@ -117,14 +117,25 @@ void CommandsDB::loadXmlFile(const std::string &fileName)
TextCommand *cmd = nullptr;
if (skill1)
{
- cmd = new TextCommand(id, name, command, comment,
- targetType, icon, level1, static_cast<MagicSchool>(skill2),
- level2, mana);
+ cmd = new TextCommand(id,
+ name,
+ command,
+ comment,
+ targetType,
+ icon,
+ level1,
+ static_cast<MagicSchoolT>(skill2),
+ level2,
+ mana);
}
else
{
- cmd = new TextCommand(id, name, command, comment,
- targetType, icon);
+ cmd = new TextCommand(id,
+ name,
+ command,
+ comment,
+ targetType,
+ icon);
}
mCommands[id] = cmd;
}