diff --git a/src/DotRecast.Recast/RcRasterizations.cs b/src/DotRecast.Recast/RcRasterizations.cs index afa6a4e..9b1f638 100644 --- a/src/DotRecast.Recast/RcRasterizations.cs +++ b/src/DotRecast.Recast/RcRasterizations.cs @@ -156,7 +156,7 @@ namespace DotRecast.Recast float axisOffset, int axis) { // How far positive or negative away from the separating axis is each vertex. - float[] inVertAxisDelta = new float[12]; + Span inVertAxisDelta = stackalloc float[12]; for (int inVert = 0; inVert < inVertsCount; ++inVert) { inVertAxisDelta[inVert] = axisOffset - inVerts[inVertsOffset + inVert * 3 + axis];