From 11000f010f19a2de85ba26660b451c7c41ab3a97 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 16 Nov 2015 20:23:30 +0300 Subject: Move MagicSchool enum into separate file and convert to strong typed. --- src/resources/db/commandsdb.cpp | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'src/resources') 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(skill2), - level2, mana); + cmd = new TextCommand(id, + name, + command, + comment, + targetType, + icon, + level1, + static_cast(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; } -- cgit v1.2.3-60-g2f50