From d132f7e401ecfc032b33405f6b247807a0754133 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Sun, 23 Aug 2009 17:10:18 +0200 Subject: [PATCH] * Fix the bug that hunter pets are gone forever after switching specs. --HG-- branch : trunk --- src/game/Player.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 35cfe58419..b21276c2e5 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -21853,6 +21853,8 @@ void Player::ActivateSpec(uint8 spec) _SaveActions(); + UnsummonPetTemporaryIfAny(); + uint32 const* talentTabIds = GetTalentTabPages(getClass()); for(uint8 i = 0; i < 3; ++i) @@ -21948,7 +21950,8 @@ void Player::ActivateSpec(uint8 spec) { _LoadActions(result, false); } - UnsummonPetTemporaryIfAny(); + + ResummonPetTemporaryUnSummonedIfAny(); SendActionButtons(1); Powers pw = getPowerType();