1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:53:51 +00:00

Fix issue with body part events not propogating to actors

This commit is contained in:
Kyle Cooley 2018-09-07 22:00:02 -04:00 committed by Andrei Kortunov
parent 031502b2ab
commit 1518d630ca

View file

@ -555,6 +555,14 @@ namespace CSMWorld
if (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();