- check for null for particles

This commit is contained in:
Mark Vejvoda
2012-03-13 22:37:47 +00:00
parent 3926a34ef4
commit d1a0eeca2e
2 changed files with 23 additions and 9 deletions

View File

@@ -727,7 +727,9 @@ void GameParticleSystem::saveGame(XmlNode *rootNode) {
// Children children;
for(unsigned int i = 0; i < children.size(); ++i) {
children[i]->saveGame(gameParticleSystemNode);
if(children[i] != NULL) {
children[i]->saveGame(gameParticleSystemNode);
}
}
// Primitive primitive;
gameParticleSystemNode->addAttribute("primitive",intToStr(primitive), mapTagReplacements);