fix(Core): Warning C4018 (#5091)
This commit is contained in:
parent
3de7d14620
commit
1367475a59
1 changed files with 1 additions and 1 deletions
|
|
@ -6397,7 +6397,7 @@ float getProbabilityOfLevelUp(uint32 SkillValue)
|
|||
return 0.0f;
|
||||
}
|
||||
|
||||
std::array bounds{ 115, 135, 160, 190, 215, 295, 315, 355, 425, 450 };
|
||||
std::array<uint32, 10> bounds{ 115, 135, 160, 190, 215, 295, 315, 355, 425, 450 };
|
||||
std::array<float, 11> dens{ 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 9.0f, 10.0f, 11.0f, 12.0f, 1.0f };
|
||||
auto it = std::lower_bound(std::begin(bounds), std::end(bounds), SkillValue);
|
||||
return 100 / dens[std::distance(std::begin(bounds), it)];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue