mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
refactor(src/common): remove unused imports (#19506)
* refactor(src/common): remove unused imports * fix: build * chore: fix build * chore: size_t -> std::size_t * chore: fix fuckup from previous commit * chore: fix build * chore: fix build * chore: fix build * chore: fix build with std::size_t * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build
This commit is contained in:
@@ -864,7 +864,7 @@ bool Player::UpdateFishingSkill()
|
||||
// bonus abilities in sSkillLineAbilityStore
|
||||
// Used only to avoid scan DBC at each skill grow
|
||||
static uint32 bonusSkillLevels[] = {75, 150, 225, 300, 375, 450};
|
||||
static const size_t bonusSkillLevelsSize =
|
||||
static const std::size_t bonusSkillLevelsSize =
|
||||
sizeof(bonusSkillLevels) / sizeof(uint32);
|
||||
|
||||
bool Player::UpdateSkillPro(uint16 SkillId, int32 Chance, uint32 step)
|
||||
@@ -908,7 +908,7 @@ bool Player::UpdateSkillPro(uint16 SkillId, int32 Chance, uint32 step)
|
||||
if (itr->second.uState != SKILL_NEW)
|
||||
itr->second.uState = SKILL_CHANGED;
|
||||
|
||||
for (size_t i = 0; i < bonusSkillLevelsSize; ++i)
|
||||
for (std::size_t i = 0; i < bonusSkillLevelsSize; ++i)
|
||||
{
|
||||
uint32 bsl = bonusSkillLevels[i];
|
||||
if (SkillValue < bsl && new_value >= bsl)
|
||||
@@ -1322,7 +1322,7 @@ void Player::UpdateEquipSpellsAtFormChange()
|
||||
}
|
||||
|
||||
// item set bonuses not dependent from item broken state
|
||||
for (size_t setindex = 0; setindex < ItemSetEff.size(); ++setindex)
|
||||
for (std::size_t setindex = 0; setindex < ItemSetEff.size(); ++setindex)
|
||||
{
|
||||
ItemSetEffect* eff = ItemSetEff[setindex];
|
||||
if (!eff)
|
||||
|
||||
Reference in New Issue
Block a user