From 29901b5389bc67075cc561f2758df1a793d016db Mon Sep 17 00:00:00 2001 From: maximius Date: Sun, 30 Aug 2009 22:53:12 -0700 Subject: *Same as previous commit, for pets. I know this could be optimized, but not sure how to do it correctly :/ --HG-- branch : trunk --- src/game/Player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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])) { -- cgit v1.2.3