Watch
2
0
Fork
You've already forked raylib-cs
0

Update Raylib.Utils.cs

This commit is contained in:
Alexander Baggett 2024-09-11 20:42:48 -05:00 committed by GitHub
commit 3339068932
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}