diff options
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 212ada7f450..d82fca25877 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -20519,7 +20519,7 @@ void Player::LearnTalent(uint32 talentId, uint32 talentRank) // find current max talent rank int32 curtalent_maxrank = 0; - for(int32 k = MAX_TALENT_RANK-1; k > -1; --k) + for(uint8 k = MAX_TALENT_RANK-1; k > -1; --k) { if(talentInfo->RankID[k] && HasSpell(talentInfo->RankID[k])) { @@ -20654,7 +20654,7 @@ void Player::LearnPetTalent(uint64 petGuid, uint32 talentId, uint32 talentRank) // find current max talent rank int32 curtalent_maxrank = 0; - for(int32 k = MAX_TALENT_RANK-1; k > -1; --k) + for(uint8 k = MAX_TALENT_RANK-1; k > -1; --k) { if(talentInfo->RankID[k] && pet->HasSpell(talentInfo->RankID[k])) { @@ -20844,7 +20844,7 @@ void Player::BuildPlayerTalentsInfoData(WorldPacket *data) // find max talent rank int32 curtalent_maxrank = -1; - for(int32 k = 4; k > -1; --k) + for(uint8 k = 4; k > -1; --k) { if(talentInfo->RankID[k] && HasSpell(talentInfo->RankID[k])) { @@ -20921,7 +20921,7 @@ void Player::BuildPetTalentsInfoData(WorldPacket *data) // find max talent rank int32 curtalent_maxrank = -1; - for(int32 k = 4; k > -1; --k) + for(uint8 k = 4; k > -1; --k) { if(talentInfo->RankID[k] && pet->HasSpell(talentInfo->RankID[k])) { |