Skip to content

Commit

Permalink
Game no longer crashes in edit mode when creating a new polygon
Browse files Browse the repository at this point in the history
fixes #1361
  • Loading branch information
vchelaru committed Feb 18, 2024
1 parent bc56371 commit 41c2374
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ void MakePolygonRectangleMinMax(float minXInner, float maxXInner, float minYInne
{
polygon = polygon ?? new PolygonFast();

polygon.Points = asPolygon.Points.ToList();
polygon.Points = asPolygon.Points?.ToList() ?? new List<FlatRedBall.Math.Geometry.Point>();
polygon.Position = asPolygon.Position;
polygon.RotationMatrix = asPolygon.RotationMatrix;
}
Expand Down

0 comments on commit 41c2374

Please sign in to comment.