Commit fde0f20a authored by Andrei Kortunov's avatar Andrei Kortunov

Fix faction requirement calculations (bug #5499)

parent 3dc3fe06
......@@ -32,6 +32,7 @@
Bug #5479: NPCs who should be walking around town are standing around without walking
Bug #5484: Zero value items shouldn't be able to be bought or sold for 1 gold
Bug #5490: Hits to carried left slot aren't redistributed if there's no shield equipped
Bug #5499: Faction advance is available when requirements not met
Feature #390: 3rd person look "over the shoulder"
Feature #2386: Distant Statics in the form of Object Paging
Feature #5297: Add a search function to the "Datafiles" tab of the OpenMW launcher
......
......@@ -415,7 +415,18 @@ bool MWMechanics::NpcStats::hasSkillsForRank (const std::string& factionId, int
if (skills.size() < 2)
return true;
return *++iter>=rankData.mSkill2;
iter++;
if (*iter<rankData.mSkill2)
return false;
if (skills.size() < 3)
return true;
iter++;
if (*iter<rankData.mSkill2)
return false;
return true;
}
bool MWMechanics::NpcStats::isWerewolf() const
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment