Fix issue with body part events not propogating to actors

pull/541/head
Kyle Cooley 6 years ago committed by Andrei Kortunov
parent 031502b2ab
commit 1518d630ca

@ -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…
Cancel
Save