From 3eeeb742f24a8ea54d37167d4f495e5cafd8d98d Mon Sep 17 00:00:00 2001 From: Elkantor Date: Mon, 21 Dec 2020 15:36:02 +0100 Subject: [PATCH] Fix compilation error --- src/raymath.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raymath.h b/src/raymath.h index dae5cfd69..5aa59338a 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -347,8 +347,8 @@ RMDEF _Bool Vector2LineIntersect(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, if (pointIntersection) { - pointIntersection.x = p1.x + (p2.x - p1.x) * coeff; - pointIntersection.y = p1.y + (p2.y - p1.y) * coeff; + pointIntersection->x = p1.x + (p2.x - p1.x) * coeff; + pointIntersection->y = p1.y + (p2.y - p1.y) * coeff; } return true; }