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:
parent
ff7e4174f9
commit
da5c59c8af
@ -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…
x
Reference in New Issue
Block a user