From 53cc3c86f2b5040cec577145feff9db2c93bd268 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 17 May 2015 02:48:54 +0300 Subject: Fix some issues after automatic checks. --- src/particle/particle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/particle') 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( 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( emitterNode->xmlChildrenNode->content); -- cgit v1.2.3-70-g09d2