summaryrefslogtreecommitdiff
path: root/src/particle/particleemitter.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-26 00:08:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-26 00:08:41 +0300
commit6a85fbae1583368f8c632108260b78e4b5d8ebf3 (patch)
treeda2d6f3f1c3e00c491e0e7b117e7da9874d83023 /src/particle/particleemitter.cpp
parentafbcfe595044767a44055473ce07df1f0fd63dbb (diff)
downloadmanaplus-6a85fbae1583368f8c632108260b78e4b5d8ebf3.tar.gz
manaplus-6a85fbae1583368f8c632108260b78e4b5d8ebf3.tar.bz2
manaplus-6a85fbae1583368f8c632108260b78e4b5d8ebf3.tar.xz
manaplus-6a85fbae1583368f8c632108260b78e4b5d8ebf3.zip
Add missing checks into particle directory.
Diffstat (limited to 'src/particle/particleemitter.cpp')
-rw-r--r--src/particle/particleemitter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/particle/particleemitter.cpp b/src/particle/particleemitter.cpp
index 1e227be1f..69593a0e5 100644
--- a/src/particle/particleemitter.cpp
+++ b/src/particle/particleemitter.cpp
@@ -73,6 +73,8 @@ ParticleEmitter::ParticleEmitter(const XmlNodePtrConst emitterNode,
mOutputPause.set(0);
mParticleAlpha.set(1.0F);
+ if (!emitterNode)
+ return;
for_each_xml_child_node(propertyNode, emitterNode)
{
if (xmlNameEqual(propertyNode, "property"))