mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 07:31:21 +02:00
- check for null for particles
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user