mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-22 18:39:42 +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