1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 11:53:53 +00:00

Fixes #1291: Faction rank saving issue

A value of 0 is the first rank, -1 means not a member
This commit is contained in:
scrawl 2014-04-26 11:41:44 +02:00
parent 45d2a00717
commit ef39b0f6ab

View file

@ -491,7 +491,7 @@ void MWMechanics::NpcStats::readState (const ESM::NpcStats& state)
if (iter->second.mExpelled)
mExpelled.insert (iter->first);
if (iter->second.mRank)
if (iter->second.mRank >= 0)
mFactionRank.insert (std::make_pair (iter->first, iter->second.mRank));
if (iter->second.mReputation)