1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-29 22:20:33 +00:00

Clear expelled status when leaving faction

This commit is contained in:
Alexei Dobrohotov 2019-05-13 10:22:03 +03:00 committed by GitHub
parent 555e43855d
commit bb0c989f87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}
}