diff --git a/Raylib-cs/types/Raylib.Utils.cs b/Raylib-cs/types/Raylib.Utils.cs index 480d656..7213bce 100644 --- a/Raylib-cs/types/Raylib.Utils.cs +++ b/Raylib-cs/types/Raylib.Utils.cs @@ -424,9 +424,9 @@ public static unsafe partial class Raylib public static CBool CheckCollisionPointPoly(Vector2 point, Vector2[] points) { - fixed (Vector2* pointsPtr = &points[0]) + fixed (Vector2* p = points) { - return CheckCollisionPointPoly(point, pointsPtr, points.Length); + return CheckCollisionPointPoly(point, p, points.Length); } }