diff options
author | maximius <none@none> | 2009-08-30 22:53:12 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-08-30 22:53:12 -0700 |
commit | 29901b5389bc67075cc561f2758df1a793d016db (patch) | |
tree | d84e046d2a2cf1345bdcd873956b906e55abdbf0 /src | |
parent | d9656fbabdbb519e4e042d78ddafdfd2ab7bd8e2 (diff) |
*Same as previous commit, for pets. I know this could be optimized, but not sure how to do it correctly :/
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 23748d7bd2d..53f7bdfc7ca 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -21265,8 +21265,8 @@ void Player::LearnPetTalent(uint64 petGuid, uint32 talentId, uint32 talentRank) return; // find current max talent rank (1~5) - uint8 curtalent_maxrank = 1; - for(uint8 rank = MAX_TALENT_RANK-1; rank > 0; --rank) + uint8 curtalent_maxrank = 0; + for(uint8 rank = MAX_TALENT_RANK-1; rank >= 0; --rank) { if(talentInfo->RankID[rank] && pet->HasSpell(talentInfo->RankID[rank])) { |