mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(Core): Warning C4018 (#5091)
This commit is contained in:
@@ -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)];
|
||||
|
||||
Reference in New Issue
Block a user