diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-17 02:48:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-17 02:48:54 +0300 |
commit | 53cc3c86f2b5040cec577145feff9db2c93bd268 (patch) | |
tree | 44d3d91d85d9c10fbb8aa5636b0e72ebfea0c76f /src/particle | |
parent | 26f2c689298bb2077000b81ff3fe14328a89feb8 (diff) | |
download | mv-53cc3c86f2b5040cec577145feff9db2c93bd268.tar.gz mv-53cc3c86f2b5040cec577145feff9db2c93bd268.tar.bz2 mv-53cc3c86f2b5040cec577145feff9db2c93bd268.tar.xz mv-53cc3c86f2b5040cec577145feff9db2c93bd268.zip |
Fix some issues after automatic checks.
Diffstat (limited to 'src/particle')
-rw-r--r-- | src/particle/particle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/particle/particle.cpp b/src/particle/particle.cpp index 08131cd23..f270dcc79 100644 --- a/src/particle/particle.cpp +++ b/src/particle/particle.cpp @@ -330,7 +330,7 @@ Particle *Particle::addEffect(const std::string &particleEffectFile, else if ((node = XML::findFirstChildByName(effectChildNode, "image"))) { std::string imageSrc; - if (node->xmlChildrenNode) + if (node && node->xmlChildrenNode) { imageSrc = reinterpret_cast<const char*>( node->xmlChildrenNode->content); @@ -380,7 +380,7 @@ Particle *Particle::addEffect(const std::string &particleEffectFile, else if (xmlNameEqual(emitterNode, "deatheffect")) { std::string deathEffect; - if (node->xmlChildrenNode) + if (node && node->xmlChildrenNode) { deathEffect = reinterpret_cast<const char*>( emitterNode->xmlChildrenNode->content); |