From 0da827d7547ce76a3911ecb742cac1af9fcafd2e Mon Sep 17 00:00:00 2001 From: raysan5 Date: Wed, 23 Dec 2020 12:54:57 +0100 Subject: [PATCH] Corrected small issue --- src/shapes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shapes.c b/src/shapes.c index fad55e24..24c91225 100644 --- a/src/shapes.c +++ b/src/shapes.c @@ -1486,7 +1486,7 @@ bool CheckCollisionLines(Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, if (yi < fminf(startPos1.y, endPos1.y) || yi > fmaxf(startPos1.y, endPos1.y)) return false; if (yi < fminf(startPos2.y, endPos2.y) || yi > fmaxf(startPos2.y, endPos2.y)) return false; - if (collisionPoint != NULL) + if (collisionPoint != 0) { collisionPoint->x = xi; collisionPoint->y = yi;