mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-10 06:44:29 +00:00
Clear expelled status when leaving faction
This commit is contained in:
parent
555e43855d
commit
bb0c989f87
@ -87,7 +87,10 @@ void MWMechanics::NpcStats::lowerRank(const std::string &faction)
|
|||||||
{
|
{
|
||||||
it->second = it->second-1;
|
it->second = it->second-1;
|
||||||
if (it->second < 0)
|
if (it->second < 0)
|
||||||
|
{
|
||||||
mFactionRank.erase(it);
|
mFactionRank.erase(it);
|
||||||
|
mExpelled.erase(lower);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user