Skip to content

Commit 88d3b44

Browse files
fix very rare exception when using /f3d with brushes
1 parent 03af28e commit 88d3b44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fCraft/Drawing/DrawOps/Fill3DDrawOperation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ private IEnumerable<Vector3I> BlockEnumerator() {
153153
yield return coords;
154154
if (coords.X - 1 >= Bounds.XMin) stack.Push(index - 1);
155155
if (coords.X + 1 <= Bounds.XMax) stack.Push(index + 1);
156-
if (coords.Y - 1 >= Bounds.YMin) stack.Push(index + width);
157-
if (coords.Y + 1 <= Bounds.YMax) stack.Push(index - width);
156+
if (coords.Y - 1 >= Bounds.YMin) stack.Push(index - width);
157+
if (coords.Y + 1 <= Bounds.YMax) stack.Push(index + width);
158158
if (coords.Z - 1 >= Bounds.ZMin) stack.Push(index - width * length);
159159
if (coords.Z + 1 <= Bounds.ZMax) stack.Push(index + width * length);
160160
}

0 commit comments

Comments
 (0)