Skip to content

Commit 151fac3

Browse files
committed
Fix new merit type
1 parent 4193cb0 commit 151fac3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SC.ObjectModel/COSolution.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ public double ScorePieceAllocation(Container container, VariablePiece piece, int
11551155
}
11561156
case MeritFunctionType.H:
11571157
{
1158-
return position.X + piece[orientation].BoundingBox.Length;
1158+
return position.Z + piece[orientation].BoundingBox.Height;
11591159
}
11601160
case MeritFunctionType.None:
11611161
default: return 0.0;

0 commit comments

Comments
 (0)