diff --git a/modules/dynamic/heightmap-selection.js b/modules/dynamic/heightmap-selection.js index c81574bf..895719ae 100644 --- a/modules/dynamic/heightmap-selection.js +++ b/modules/dynamic/heightmap-selection.js @@ -314,6 +314,6 @@ function confirmHeightmapEdit() { function getHeightmapPreview(heights) { const scheme = getColorScheme(byId("heightmapSelectionColorScheme").value); const renderOcean = byId("heightmapSelectionRenderOcean").checked; - const dataUrl = drawHeights({heights, width: grid.cellsX, height: grid.cellsY, scheme, renderOcean}); + const dataUrl = drawHeights({heights, width: graph.cellsX, height: graph.cellsY, scheme, renderOcean}); return dataUrl; }