Skip to content

Commit

Permalink
Fix max level query
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraser Greenroyd committed Dec 19, 2019
1 parent b754ef6 commit 1601e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Environment_Engine/Query/Level.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static double MaximumLevel(this Polyline polyline)
{
List<Point> crvPts = polyline.IControlPoints();

double max = 1e10;
double max = -1e10;
foreach (Point p in crvPts)
max = Math.Max(max, p.Z);

Expand Down

0 comments on commit 1601e6b

Please sign in to comment.