1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-10 03:39:55 +00:00

don't increase skill beyond 100

This commit is contained in:
scrawl 2012-09-15 19:10:48 +02:00
parent f5237ff1a6
commit 0dc242c603

View File

@ -157,6 +157,9 @@ void MWMechanics::NpcStats::increaseSkill(int skillIndex, const ESM::Class &clas
int level = static_cast<int> (base);
if (level == 100)
return;
if (preserveProgress)
base += 1;
else