1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-21 11:39:41 +00:00

Fix auto-equipping of blunt weapons

This commit is contained in:
MiroslavR 2016-10-19 22:37:45 +02:00
parent a5ca33ad0b
commit 407abc605f

View file

@ -343,12 +343,12 @@ void MWWorld::InventoryStore::autoEquip (const MWWorld::Ptr& actor)
bool weaponSkillVisited[weaponSkillsLength] = { false }; bool weaponSkillVisited[weaponSkillsLength] = { false };
for (int i = 0; i < static_cast<int>(weaponSkillsLength) - 1; ++i) for (int i = 0; i < static_cast<int>(weaponSkillsLength); ++i)
{ {
int max = 0; int max = 0;
int maxWeaponSkill = -1; int maxWeaponSkill = -1;
for (int j = 0; j < static_cast<int>(weaponSkillsLength) - 1; ++j) for (int j = 0; j < static_cast<int>(weaponSkillsLength); ++j)
{ {
int skillValue = stats.getSkill(static_cast<int>(weaponSkills[j])).getModified(); int skillValue = stats.getSkill(static_cast<int>(weaponSkills[j])).getModified();