diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/IntVector2.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/IntVector2.java index 40fb353..fa076f3 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/IntVector2.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/IntVector2.java @@ -87,7 +87,9 @@ public class IntVector2 implements Serializable { } public IntVector2 add(int x, int y) { - return new IntVector2(this.x + x, this.y + y); + this.x += x; + this.y += y; + return this; } public IntVector2 add(IntVector2 v) {