delete the projectile type if not needed

This commit is contained in:
titiger 2014-11-25 22:35:07 +01:00
parent 7bf6fe756c
commit 50b27db1d6
1 changed files with 3 additions and 0 deletions

View File

@ -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()));
projectileType->setProjectileParticleSystemType(projectileParticleSystemType);
}
else {
delete projectileType;
}
}
//proj sounds
const XmlNode *soundNode= projectileNode->getChild("sound");