summaryrefslogtreecommitdiff
path: root/src/resources/db/commandsdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/db/commandsdb.cpp')
-rw-r--r--src/resources/db/commandsdb.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/resources/db/commandsdb.cpp b/src/resources/db/commandsdb.cpp
index 091ae718c..2203cbaa8 100644
--- a/src/resources/db/commandsdb.cpp
+++ b/src/resources/db/commandsdb.cpp
@@ -46,14 +46,14 @@ void CommandsDB::load()
mLoaded = true;
}
-static SpellTarget parseTarget(const std::string &text)
+static CommandTargetT parseTarget(const std::string &text)
{
if (text == "allow target")
- return ALLOWTARGET;
+ return CommandTarget::AllowTarget;
else if (text == "need target")
- return NEEDTARGET;
+ return CommandTarget::NeedTarget;
else
- return NOTARGET;
+ return CommandTarget::NoTarget;
}
void CommandsDB::loadXmlFile(const std::string &fileName)
@@ -99,7 +99,7 @@ void CommandsDB::loadXmlFile(const std::string &fileName)
commandNode, "command", "");
const std::string comment = XML::getProperty(
commandNode, "comment", "");
- const SpellTarget targetType = parseTarget(XML::getProperty(
+ const CommandTargetT targetType = parseTarget(XML::getProperty(
commandNode, "target", ""));
const std::string icon = XML::getProperty(
commandNode, "icon", "");