Fix switch creation id issue

This commit is contained in:
Arne Keller 2020-03-09 10:42:50 +01:00
parent e0aea8543c
commit b1cee5e796

View File

@ -35,8 +35,8 @@ public final class Switch extends Rail {
*/ */
public Switch(Vector2D start, Vector2D end1, Vector2D end2, int id) throws InvalidInputException { public Switch(Vector2D start, Vector2D end1, Vector2D end2, int id) throws InvalidInputException {
super(id); super(id);
this.positionOne = new Track(start, end1, -1); this.positionOne = new Track(start, end1, 1);
this.positionTwo = new Track(start, end2, -1); this.positionTwo = new Track(start, end2, 1);
} }
@Override @Override