Skip to content

Commit 06ff1ff

Browse files
committed
Update pyramid example
1 parent ce1c51d commit 06ff1ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

example/pyramid.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ int main() {
3434
int min_height = *std::min_element(heights.begin(), heights.end());
3535

3636
// Build rings, diminishing up to pyramid height
37-
mcpp::Coordinate base_pt = heights.base_pt();
38-
base_pt.y = min_height;
37+
mcpp::Coordinate base_pt = {heights.base_pt(), min_height};
3938
int side_len = pyramid_base_len;
4039
for (int i = 0; i < PYRAMID_HEIGHT; i++) {
4140
make_ring(base_pt + mcpp::Coordinate(i, i, i), side_len - (i * 2));

0 commit comments

Comments
 (0)