From 33390689321263471b4705c2e008fe6fbcf869ab Mon Sep 17 00:00:00 2001 From: Alexander Baggett Date: Wed, 11 Sep 2024 20:42:48 -0500 Subject: [PATCH] Update Raylib.Utils.cs --- Raylib-cs/types/Raylib.Utils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Raylib-cs/types/Raylib.Utils.cs b/Raylib-cs/types/Raylib.Utils.cs index 510e589..b43f4ab 100644 --- a/Raylib-cs/types/Raylib.Utils.cs +++ b/Raylib-cs/types/Raylib.Utils.cs @@ -425,7 +425,7 @@ public static unsafe partial class Raylib public static CBool CheckCollisionPointPoly(Vector2 point, Vector2[] points) { - fixed (Vector2* pointsPtr = &MemoryMarshal.GetArrayDataReference(points)) + fixed (Vector2* pointsPtr = &points[0]) { return CheckCollisionPointPoly(point, pointsPtr, points.Length); }