From 04db51ca0396a032e4f602f315fd473ffb1bb468 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Fri, 28 Jan 2022 14:05:32 -0500 Subject: [PATCH] Actually fix WaveformColapse builder --- src/map_builders/waveform_collapse.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/map_builders/waveform_collapse.rs b/src/map_builders/waveform_collapse.rs index cb25e16..949829b 100644 --- a/src/map_builders/waveform_collapse.rs +++ b/src/map_builders/waveform_collapse.rs @@ -94,8 +94,12 @@ impl WaveformCollapseBuilder { if y + chunk_size > build_data.map.height { // Move to the next page build_data.take_snapshot(); - build_data.map = - Map::new(0, build_data.width, build_data.height, &build_data.map.name); + build_data.map = Map::new( + build_data.map.depth, + build_data.width, + build_data.height, + &build_data.map.name, + ); x = 1; y = 1;