mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
Fix underflow for NPCs with level 0
This commit is contained in:
parent
a1639371d3
commit
fd3f109362
@ -230,7 +230,7 @@ namespace
|
|||||||
+ 5
|
+ 5
|
||||||
+ raceBonus
|
+ raceBonus
|
||||||
+ specBonus
|
+ specBonus
|
||||||
+ (level-1) * (majorMultiplier + specMultiplier)), 100));
|
+(int(level)-1) * (majorMultiplier + specMultiplier)), 100)); // Must gracefully handle level 0
|
||||||
}
|
}
|
||||||
|
|
||||||
int skills[ESM::Skill::Length];
|
int skills[ESM::Skill::Length];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user