summaryrefslogtreecommitdiff
path: root/src/particle
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-17 02:48:54 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-17 02:48:54 +0300
commit53cc3c86f2b5040cec577145feff9db2c93bd268 (patch)
tree44d3d91d85d9c10fbb8aa5636b0e72ebfea0c76f /src/particle
parent26f2c689298bb2077000b81ff3fe14328a89feb8 (diff)
downloadmanaverse-53cc3c86f2b5040cec577145feff9db2c93bd268.tar.gz
manaverse-53cc3c86f2b5040cec577145feff9db2c93bd268.tar.bz2
manaverse-53cc3c86f2b5040cec577145feff9db2c93bd268.tar.xz
manaverse-53cc3c86f2b5040cec577145feff9db2c93bd268.zip
Fix some issues after automatic checks.
Diffstat (limited to 'src/particle')
-rw-r--r--src/particle/particle.cpp4
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);