fixes nearly 20-year-old bug in EB-AFIT packing algorithm

This commit is contained in:
David Chapman
2021-03-01 21:09:13 -06:00
parent 7f24c7be65
commit 1f18269960

View File

@ -938,7 +938,7 @@ namespace CromulentBisgetti.ContainerPacking.Algorithms
if (smallestZ.CumZ + cboxz == smallestZ.Pre.CumZ)
{
smallestZ.CumX = smallestZ.CumX - cboxx;
itemsToPack[cboxi].CoordX = smallestZ.CumX - cboxx;
itemsToPack[cboxi].CoordX = smallestZ.CumX;
}
else
{