delete the projectile type if not needed
This commit is contained in:
parent
7bf6fe756c
commit
50b27db1d6
|
@ -964,6 +964,9 @@ void AttackSkillType::load(const XmlNode *sn, const XmlNode *attackBoostsNode,
|
||||||
loadedFileList[currentPath + path].push_back(make_pair(parentLoader,particleNode->getAttribute("path")->getRestrictedValue()));
|
loadedFileList[currentPath + path].push_back(make_pair(parentLoader,particleNode->getAttribute("path")->getRestrictedValue()));
|
||||||
projectileType->setProjectileParticleSystemType(projectileParticleSystemType);
|
projectileType->setProjectileParticleSystemType(projectileParticleSystemType);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
delete projectileType;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//proj sounds
|
//proj sounds
|
||||||
const XmlNode *soundNode= projectileNode->getChild("sound");
|
const XmlNode *soundNode= projectileNode->getChild("sound");
|
||||||
|
|
Loading…
Reference in New Issue