Skip to content
Permalink
Browse files

fix very rare exception when using /f3d with brushes

  • Loading branch information...
UnknownShadow200 committed Feb 19, 2018
1 parent 03af28e commit 88d3b446d1dcb2e8395348e24d128db04ec4b5f8
Showing with 2 additions and 2 deletions.
  1. +2 −2 fCraft/Drawing/DrawOps/Fill3DDrawOperation.cs
@@ -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);
}

0 comments on commit 88d3b44

Please sign in to comment.
You can’t perform that action at this time.