fix(Core/Unit): Call UpdatePosition() for pets as well (#23971)
This commit is contained in:
parent
48025f9695
commit
0368276fca
1 changed files with 1 additions and 1 deletions
|
|
@ -628,7 +628,7 @@ void Unit::UpdateSplinePosition()
|
|||
//if (HasUnitState(UNIT_STATE_CANNOT_TURN))
|
||||
// loc.orientation = GetOrientation();
|
||||
|
||||
if (IsPlayer())
|
||||
if (IsPlayer() || IsPet())
|
||||
UpdatePosition(loc.x, loc.y, loc.z, loc.orientation);
|
||||
else
|
||||
ToCreature()->SetPosition(loc.x, loc.y, loc.z, loc.orientation);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue