mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 00:15:32 +00:00
Clear expelled status when leaving faction
This commit is contained in:
parent
555e43855d
commit
bb0c989f87
1 changed files with 3 additions and 0 deletions
|
@ -87,7 +87,10 @@ void MWMechanics::NpcStats::lowerRank(const std::string &faction)
|
|||
{
|
||||
it->second = it->second-1;
|
||||
if (it->second < 0)
|
||||
{
|
||||
mFactionRank.erase(it);
|
||||
mExpelled.erase(lower);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue