diff --git a/src/edu/kit/informatik/model/ModelRailwaySimulation.java b/src/edu/kit/informatik/model/ModelRailwaySimulation.java index dba0fdb..2a92cee 100644 --- a/src/edu/kit/informatik/model/ModelRailwaySimulation.java +++ b/src/edu/kit/informatik/model/ModelRailwaySimulation.java @@ -479,6 +479,7 @@ public class ModelRailwaySimulation { || occupiedByOtherTrainPreviously.stream().anyMatch(occupiedByThisTrain::contains); if (anyIntersection) { train.removeFromRails(); + otherTrain.removeFromRails(); // try to find/merge existing collisions Set existingCollision = null; for (Set collision : collisions) {