mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-22 10:39:41 +00:00
Fix issue with body part events not propogating to actors
This commit is contained in:
parent
031502b2ab
commit
1518d630ca
1 changed files with 8 additions and 0 deletions
|
@ -555,6 +555,14 @@ namespace CSMWorld
|
||||||
if (data)
|
if (data)
|
||||||
{
|
{
|
||||||
setupRace(race, data);
|
setupRace(race, data);
|
||||||
|
// Race was changed. Need to mark actor dependencies as dirty.
|
||||||
|
// Cannot use markDirtyDependency because that would invalidate
|
||||||
|
// the current iterator.
|
||||||
|
for (auto actorIt : mCachedActors)
|
||||||
|
{
|
||||||
|
if (actorIt->hasDependency(race))
|
||||||
|
mDirtyActors.emplace(actorIt->getId());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mDirtyRaces.clear();
|
mDirtyRaces.clear();
|
||||||
|
|
Loading…
Reference in a new issue