Core/MovementGenerator: 680e1cb follow-up

This commit is contained in:
Giacomo Pozzoni authored and Ovahlord committed 2019-09-22 13:55:47 +02:00
1 parent c94d98f5eb
commit fd8e20893d
1 file changed
+2 -2
@@ -170,14 +170,14 @@ bool FlightPathMovementGenerator::DoUpdate(Player* player, uint32 /*diff*/)
}
}
if (pointId >= _currentNode)
if (pointId == _currentNode)
break;
if (_currentNode == _preloadTargetNode)
PreloadEndGrid();
_currentNode += departureEvent ? 1 : 0;
departureEvent = !departureEvent;
} while (true);
} while (_currentNode < _path.size());
}
return _currentNode < (_path.size() - 1);