Update Raylib.Utils.cs
This commit is contained in:
parent
e8b8f20edf
commit
3339068932
1 changed files with 1 additions and 1 deletions
|
|
@ -425,7 +425,7 @@ public static unsafe partial class Raylib
|
||||||
|
|
||||||
public static CBool CheckCollisionPointPoly(Vector2 point, Vector2[] points)
|
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);
|
return CheckCollisionPointPoly(point, pointsPtr, points.Length);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue