From b018ab7d5bf14dad68a9447eabe94a97726d470c Mon Sep 17 00:00:00 2001 From: Alexander Baggett Date: Wed, 4 Sep 2024 09:51:31 -0500 Subject: [PATCH] Update Raylib.cs --- Raylib-cs/interop/Raylib.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Raylib-cs/interop/Raylib.cs b/Raylib-cs/interop/Raylib.cs index 613e6c4..b58e547 100644 --- a/Raylib-cs/interop/Raylib.cs +++ b/Raylib-cs/interop/Raylib.cs @@ -1291,10 +1291,10 @@ public static unsafe partial class Raylib [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern CBool CheckCollisionPointPoly(Vector2 point, Vector2* points, int pointCount); - public unsafe static bool CheckCollisionPointPoly(Vector2 point, Vector2[] points, int pointCount) + public static bool CheckCollisionPointPoly(Vector2 point, Vector2[] points) { var pointsPtr = (Vector2*)Unsafe.AsPointer(ref MemoryMarshal.GetArrayDataReference(points)); - return CheckCollisionPointPoly(point, pointsPtr, pointCount); + return CheckCollisionPointPoly(point, pointsPtr, points.Length); } ///