Unverified Commit 5192d997 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

get_travel_distance: intermediate: Handle destination renames in sanity check

Also related to #160
parent 39fb04ba
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1199,7 +1199,12 @@ sub get_travel_distance {
	  = before_incl { ( $_->[1] and $_->[1] == $to_eva ) or $_->[0] eq $to }
	@route;

	if ( @route < 2 or $route[-1][0] ne $to ) {
	if (
		@route < 2
		or ( $route[-1][0] ne $to
			and ( not $route[-1][1] or $route[-1][1] != $to_eva ) )
	  )
	{

		# I AM ERROR
		return ( 0, 0, $distance_beeline );