Skip to content

Commit

Permalink
fix very rare exception when using /f3d with brushes
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Feb 19, 2018
1 parent 03af28e commit 88d3b44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fCraft/Drawing/DrawOps/Fill3DDrawOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ public sealed class Fill3DDrawOperation : DrawOperation {
yield return coords;
if (coords.X - 1 >= Bounds.XMin) stack.Push(index - 1);
if (coords.X + 1 <= Bounds.XMax) stack.Push(index + 1);
if (coords.Y - 1 >= Bounds.YMin) stack.Push(index + width);
if (coords.Y + 1 <= Bounds.YMax) stack.Push(index - width);
if (coords.Y - 1 >= Bounds.YMin) stack.Push(index - width);
if (coords.Y + 1 <= Bounds.YMax) stack.Push(index + width);
if (coords.Z - 1 >= Bounds.ZMin) stack.Push(index - width * length);
if (coords.Z + 1 <= Bounds.ZMax) stack.Push(index + width * length);
}
Expand Down

0 comments on commit 88d3b44

Please sign in to comment.