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:
parent
ff7e4174f9
commit
da5c59c8af
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue