1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

addEffect should check effectId, not model.

This commit is contained in:
scrawl 2013-11-13 19:07:44 +01:00
parent ff7e4174f9
commit da5c59c8af

View File

@ -998,7 +998,7 @@ void Animation::addEffect(const std::string &model, int effectId, bool loop, con
{
// Early out if we already have this effect
for (std::vector<EffectParams>::iterator it = mEffects.begin(); it != mEffects.end(); ++it)
if (it->mModelName == model)
if (it->mEffectId == effectId)
return;
EffectParams params;