Commit fd3f1093 authored by scrawl's avatar scrawl

Fix underflow for NPCs with level 0

parent a1639371
......@@ -230,7 +230,7 @@ namespace
+ 5
+ raceBonus
+ specBonus
+ (level-1) * (majorMultiplier + specMultiplier)), 100));
+(int(level)-1) * (majorMultiplier + specMultiplier)), 100)); // Must gracefully handle level 0
}
int skills[ESM::Skill::Length];
......
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