From e9a28f074ceb3f85e434890daa05ad9859aa4860 Mon Sep 17 00:00:00 2001 From: kayomn Date: Thu, 16 Nov 2023 19:02:30 +0000 Subject: [PATCH] Fix add squaring on floats instead --- source/ona/kym.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ona/kym.zig b/source/ona/kym.zig index 83d076a..d00dd54 100644 --- a/source/ona/kym.zig +++ b/source/ona/kym.zig @@ -639,7 +639,7 @@ pub const RuntimeEnv = struct { return switch (addable.internal().payload) { .fixed => |lhs_fixed| self.new_float(@as(Float, @floatFromInt(lhs_fixed)) + rhs_float), - .float => |lhs_float| self.new_float(lhs_float + lhs_float), + .float => |lhs_float| self.new_float(lhs_float + rhs_float), .vector2 => |lhs_vector2| self.new_vector2(lhs_vector2.scalar_added(@floatCast(rhs_float))), .vector3 => |lhs_vector3| self.new_vector3(lhs_vector3.scalar_added(@floatCast(rhs_float))),