aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-08-23 17:10:18 +0200
committerMachiavelli <none@none>2009-08-23 17:10:18 +0200
commitd132f7e401ecfc032b33405f6b247807a0754133 (patch)
treeac80a92d1347f3c9dd0d6056a52d691ba344a3f2 /src
parenteb14781321f509ff32a733c2521a78641f16287d (diff)
* Fix the bug that hunter pets are gone forever after switching specs.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 35cfe584199..b21276c2e51 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();