fix(Core/Unit): Call UpdatePosition() for pets as well (#23971)

This commit is contained in:
Andrew 2025-11-30 07:07:17 -03:00 committed by GitHub
parent 48025f9695
commit 0368276fca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);