1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-03 18:45:34 +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;