fixed minor bug

This commit is contained in:
Stephan Richter
2021-06-28 23:01:11 +02:00
parent 7170952cb5
commit ef4740ccda
2 changed files with 2 additions and 2 deletions

View File

@@ -113,7 +113,7 @@ public class RoutePrepper extends BaseClass implements Runnable{
PriorityQueue<Trail> candidates = routesFrom(c); // map: route → score
if (isNull(destination)) {
if (isNull(destination) || train.isShunting()) {
LOG.debug("{} has no destination, returning {}",train,candidates);
return candidates;
}