[8113] Fixed setting mover for Posses/Charm auras and Vehicle enter/exit.

Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
m4cm4n 2009-07-04 12:50:32 +02:00 committed by ApoC
parent d17a49f6dc
commit 7c5f254012
5 changed files with 7 additions and 4 deletions

View file

@ -7564,9 +7564,6 @@ void Unit::SetPet(Pet* pet)
void Unit::SetCharm(Unit* pet)
{
SetUInt64Value(UNIT_FIELD_CHARM, pet ? pet->GetGUID() : 0);
if(GetTypeId() == TYPEID_PLAYER)
((Player*)this)->m_mover = pet ? pet : this;
}