diff --git a/zone/pathing.cpp b/zone/pathing.cpp index e805138e3..9bd6492a7 100644 --- a/zone/pathing.cpp +++ b/zone/pathing.cpp @@ -77,19 +77,18 @@ glm::vec3 Mob::UpdatePath(float ToX, float ToY, float ToZ, float Speed, bool &Wa bool AtPrevNode = DistanceSquared(From, PathingLastPosition) < 1.0f; if (AtPrevNode) { PathingLoopCount++; + auto front = (*Route.begin()).pos; if (PathingLoopCount > 5) { + Teleport(front); SendPosition(); + Route.pop_front(); + + WaypointChanged = true; + NodeReached = true; + PathingLoopCount = 0; } - auto front = (*Route.begin()).pos; - Teleport(front); - Route.pop_front(); - - WaypointChanged = true; - NodeReached = true; - PathingLoopCount = 0; - return front; } else {