diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-30 13:59:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-20 21:58:39 +0300 |
commit | bc3a7cf853510ffe1e42dc683f854d360f6528c7 (patch) | |
tree | 9898f13eafc3e1a20388d8d592bfcc05c8f50ba7 /src/particle/particleemitter.cpp | |
parent | a058af57bddd4a4394401cc75d33461e17aab8c1 (diff) | |
download | mv-bc3a7cf853510ffe1e42dc683f854d360f6528c7.tar.gz mv-bc3a7cf853510ffe1e42dc683f854d360f6528c7.tar.bz2 mv-bc3a7cf853510ffe1e42dc683f854d360f6528c7.tar.xz mv-bc3a7cf853510ffe1e42dc683f854d360f6528c7.zip |
Add pugixml backend incomplete.
Add some defines for xml nodes manipulation.
With pugixml backend no xml writing.
Diffstat (limited to 'src/particle/particleemitter.cpp')
-rw-r--r-- | src/particle/particleemitter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/particle/particleemitter.cpp b/src/particle/particleemitter.cpp index 7ee3a4252..a512cff94 100644 --- a/src/particle/particleemitter.cpp +++ b/src/particle/particleemitter.cpp @@ -317,10 +317,9 @@ ParticleEmitter::ParticleEmitter(const XmlNodePtrConst emitterNode, } else if (xmlNameEqual(propertyNode, "deatheffect")) { - if (!propertyNode->xmlChildrenNode) + if (!XmlHaveChildContent(propertyNode)) continue; - mDeathEffect = reinterpret_cast<const char*>( - propertyNode->xmlChildrenNode->content); + mDeathEffect = XmlChildContent(propertyNode); mDeathEffectConditions = 0x00; if (XML::getBoolProperty(propertyNode, "on-floor", true)) { |