From b1cee5e7963f80b655381c4b52432c1641d49bb0 Mon Sep 17 00:00:00 2001 From: Arne Keller Date: Mon, 9 Mar 2020 10:42:50 +0100 Subject: [PATCH] Fix switch creation id issue --- .../kit/informatik/modelrailwaysimulator/model/Switch.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/edu/kit/informatik/modelrailwaysimulator/model/Switch.java b/src/edu/kit/informatik/modelrailwaysimulator/model/Switch.java index 828fbd9..d01fb6e 100644 --- a/src/edu/kit/informatik/modelrailwaysimulator/model/Switch.java +++ b/src/edu/kit/informatik/modelrailwaysimulator/model/Switch.java @@ -35,8 +35,8 @@ public final class Switch extends Rail { */ public Switch(Vector2D start, Vector2D end1, Vector2D end2, int id) throws InvalidInputException { super(id); - this.positionOne = new Track(start, end1, -1); - this.positionTwo = new Track(start, end2, -1); + this.positionOne = new Track(start, end1, 1); + this.positionTwo = new Track(start, end2, 1); } @Override