summaryrefslogtreecommitdiff
path: root/src/units.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-10 21:06:33 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-10 21:06:33 +0300
commit5edddb1313ed0dc275e6ae70b8a1780ded3a590d (patch)
treefffa478013e8f3622c4e7f85eeb71609cb352322 /src/units.cpp
parenta057817a0983b3a3190f6773101f788f2c6278ba (diff)
downloadManaVerse-5edddb1313ed0dc275e6ae70b8a1780ded3a590d.tar.gz
ManaVerse-5edddb1313ed0dc275e6ae70b8a1780ded3a590d.tar.bz2
ManaVerse-5edddb1313ed0dc275e6ae70b8a1780ded3a590d.tar.xz
ManaVerse-5edddb1313ed0dc275e6ae70b8a1780ded3a590d.zip
Replace xmlStrEqual to xmlNameEqual.
Diffstat (limited to 'src/units.cpp')
-rw-r--r--src/units.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/units.cpp b/src/units.cpp
index c031558cf..804512dbd 100644
--- a/src/units.cpp
+++ b/src/units.cpp
@@ -102,7 +102,7 @@ void Units::loadUnits()
XML::Document doc("units.xml");
XmlNodePtr root = doc.rootNode();
- if (!root || !xmlStrEqual(root->name, BAD_CAST "units"))
+ if (!root || !xmlNameEqual(root, "units"))
{
logger->log1("Error loading unit definition file: units.xml");
return;
@@ -110,7 +110,7 @@ void Units::loadUnits()
for_each_xml_child_node(node, root)
{
- if (xmlStrEqual(node->name, BAD_CAST "unit"))
+ if (xmlNameEqual(node, "unit"))
{
struct UnitDescription ud;
int level = 1;
@@ -127,7 +127,7 @@ void Units::loadUnits()
for_each_xml_child_node(uLevel, node)
{
- if (xmlStrEqual(uLevel->name, BAD_CAST "level"))
+ if (xmlNameEqual(uLevel, "level"))
{
struct UnitLevel ul;
ul.symbol = XML::getProperty(uLevel, "symbol",