From 737a1cc99ecff68618a2e62929207a778a4870e6 Mon Sep 17 00:00:00 2001 From: natrixaeria Date: Sun, 5 Jan 2020 22:38:30 +0100 Subject: Fix add_gap function to push heights --- src/structs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/structs.rs') diff --git a/src/structs.rs b/src/structs.rs index 55cff29..c61bb14 100755 --- a/src/structs.rs +++ b/src/structs.rs @@ -63,7 +63,7 @@ impl GapHeights { } pub fn add_gap(&mut self, height: u32) { - self.add_gap(height) + self.heights.push(height) } pub fn calculate_row(&self, r: u32, stones: &mut [u32]) { -- cgit v1.2.3-70-g09d2