diff --git a/src/terraform.cpp b/src/terraform.cpp index fb3ee52..61c8c4a 100644 --- a/src/terraform.cpp +++ b/src/terraform.cpp @@ -604,13 +604,13 @@ void ChangeTileCursorMode(const XYZPoint16 &voxel_pos, CursorType ctype, Viewpor w = _world.GetXSize(); h = _world.GetYSize(); } else { // Single tile mode. - p = {voxel_pos.x, voxel_pos.y}; + p = voxel_pos.Get2D(); w = 1; h = 1; } TerrainChanges changes(p, w, h); - p = {voxel_pos.x, voxel_pos.y}; + p = voxel_pos.Get2D(); bool ok; switch (ctype) {