aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-29 18:04:56 -0500
committermegamage <none@none>2009-04-29 18:04:56 -0500
commit59e79dfef08dc328a3b3ece1fa67c547c2d893e6 (patch)
tree44c193fa145b32d5a9915d7e137cc7705bbed8e3
parente695016e94c08fbef0f2e2df4df13fd27f0c86ef (diff)
*let petattack command use provided guid instead of player selection. By thenecromancer
--HG-- branch : trunk
-rw-r--r--src/game/PetHandler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/PetHandler.cpp b/src/game/PetHandler.cpp
index 456d68ed54d..6286ba40b74 100644
--- a/src/game/PetHandler.cpp
+++ b/src/game/PetHandler.cpp
@@ -107,8 +107,7 @@ void WorldSession::HandlePetAction( WorldPacket & recv_data )
}
// only place where pet can be player
pet->clearUnitState(UNIT_STAT_FOLLOW);
- uint64 selguid = _player->GetSelection();
- Unit *TargetUnit = ObjectAccessor::GetUnit(*_player, selguid);
+ Unit *TargetUnit = ObjectAccessor::GetUnit(*_player, guid2);
if(!TargetUnit)
return;