Fix potential NpcStats overwriting issue

This commit is contained in:
scrawl 2014-05-26 12:31:08 +02:00
parent 10d835a55c
commit bfd91c0681

View file

@ -496,10 +496,10 @@ void MWMechanics::NpcStats::readState (const ESM::NpcStats& state)
mExpelled.insert (iter->first); mExpelled.insert (iter->first);
if (iter->second.mRank >= 0) if (iter->second.mRank >= 0)
mFactionRank.insert (std::make_pair (iter->first, iter->second.mRank)); mFactionRank[iter->first] = iter->second.mRank;
if (iter->second.mReputation) if (iter->second.mReputation)
mFactionReputation.insert (std::make_pair (iter->first, iter->second.mReputation)); mFactionReputation[iter->first] = iter->second.mReputation;
} }
mDisposition = state.mDisposition; mDisposition = state.mDisposition;