1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-29 22:36:43 +00:00

Remove check for an empty Particle from Magic effects verifier

This commit is contained in:
Stanislav Bas 2015-08-06 14:17:42 +03:00
parent cbc8309289
commit ff2dab8d56

View file

@ -103,11 +103,7 @@ void CSMTools::MagicEffectCheckStage::perform(int stage, CSMDoc::Messages &messa
messages.push_back(std::make_pair(id, "No such Icon '" + effect.mIcon + "'")); messages.push_back(std::make_pair(id, "No such Icon '" + effect.mIcon + "'"));
} }
if (effect.mParticle.empty()) if (!effect.mParticle.empty() && !isTextureExists(effect.mParticle, false))
{
messages.push_back(std::make_pair(id, "Particle is not specified"));
}
else if (!isTextureExists(effect.mParticle, false))
{ {
messages.push_back(std::make_pair(id, "No such Particle '" + effect.mParticle + "'")); messages.push_back(std::make_pair(id, "No such Particle '" + effect.mParticle + "'"));
} }