diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-26 00:08:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-26 00:08:41 +0300 |
commit | 6a85fbae1583368f8c632108260b78e4b5d8ebf3 (patch) | |
tree | da2d6f3f1c3e00c491e0e7b117e7da9874d83023 /src/particle | |
parent | afbcfe595044767a44055473ce07df1f0fd63dbb (diff) | |
download | mv-6a85fbae1583368f8c632108260b78e4b5d8ebf3.tar.gz mv-6a85fbae1583368f8c632108260b78e4b5d8ebf3.tar.bz2 mv-6a85fbae1583368f8c632108260b78e4b5d8ebf3.tar.xz mv-6a85fbae1583368f8c632108260b78e4b5d8ebf3.zip |
Add missing checks into particle directory.
Diffstat (limited to 'src/particle')
-rw-r--r-- | src/particle/particleemitter.cpp | 2 |
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")) |