From 525ca55a220f5401addbc28fc2ba22d4324f73f9 Mon Sep 17 00:00:00 2001 From: Janis Date: Sat, 17 Dec 2022 17:15:15 +0100 Subject: [PATCH] bugfix adding points --- main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.zig b/main.zig index ad2a448..c9492e8 100644 --- a/main.zig +++ b/main.zig @@ -30,7 +30,7 @@ const Point = struct { fn add(self: *Self, other: Self) void { self.x += other.x; - self.y += other.x; + self.y += other.y; } fn added(self: *const Self, other: Self) Self {