summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-21 05:25:21 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-21 05:25:21 +0300
commit01ac8bad77156f50ba57ddff5306714dc3815ef3 (patch)
tree5595cba954c4ea6c7a656a165fb2f39860918096 /src/resources
parent62fa493303fe3c191706090606ada885eaf184f5 (diff)
downloadmv-01ac8bad77156f50ba57ddff5306714dc3815ef3.tar.gz
mv-01ac8bad77156f50ba57ddff5306714dc3815ef3.tar.bz2
mv-01ac8bad77156f50ba57ddff5306714dc3815ef3.tar.xz
mv-01ac8bad77156f50ba57ddff5306714dc3815ef3.zip
Fix compilation with pugixml.
Add macroses for XmlChar and XmlConstChar.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/db/deaddb.cpp2
-rw-r--r--src/resources/db/questdb.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/db/deaddb.cpp b/src/resources/db/deaddb.cpp
index 778d88a0b..2d9293e0f 100644
--- a/src/resources/db/deaddb.cpp
+++ b/src/resources/db/deaddb.cpp
@@ -73,7 +73,7 @@ void DeadDB::loadXmlFile(const std::string &fileName,
}
else if (xmlNameEqual(node, "message"))
{
- char *const data = reinterpret_cast<char*>(
+ XmlChar *const data = reinterpret_cast<XmlChar*>(
XmlNodeGetContent(node));
if (!data)
continue;
diff --git a/src/resources/db/questdb.cpp b/src/resources/db/questdb.cpp
index da05721b1..89228f038 100644
--- a/src/resources/db/questdb.cpp
+++ b/src/resources/db/questdb.cpp
@@ -83,7 +83,7 @@ static void loadQuest(const int var,
{
if (!xmlTypeEqual(dataNode, XML_ELEMENT_NODE))
continue;
- char *const data = reinterpret_cast<char*>(
+ XmlChar *const data = reinterpret_cast<XmlChar*>(
XmlNodeGetContent(dataNode));
if (!data)
continue;