Skip to content

Commit

Permalink
Unit: Fix teleport on vehicle
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Jul 28, 2023
1 parent 1d8a07a commit 989f52c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/Entities/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12745,9 +12745,9 @@ void Unit::NearTeleportTo(float x, float y, float z, float orientation, bool cas
if (MovementGenerator* movgen = c->GetMotionMaster()->top())
movgen->Interrupt(*c);

GetMap()->CreatureRelocation(c, x, y, z, orientation);
SendTeleportPacket(x, y, z, orientation, GetTransport());

SendHeartBeat();
GetMap()->CreatureRelocation(c, x, y, z, orientation);

// finished relocation, movegen can different from top before creature relocation,
// but apply Reset expected to be safe in any case
Expand Down

0 comments on commit 989f52c

Please sign in to comment.