fix(Core): Warning C4018 (#5091)

This commit is contained in:
Cláudio Costa
2021-04-09 08:34:14 +01:00
committed by GitHub
parent 3de7d14620
commit 1367475a59

View File

@@ -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)];