summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornatrixaeria <upezu@student.kit.edu>2020-01-05 22:38:30 +0100
committernatrixaeria <upezu@student.kit.edu>2020-01-05 22:38:30 +0100
commit737a1cc99ecff68618a2e62929207a778a4870e6 (patch)
treee0131edbb94623298ab3ce9d05bc87603aafebda
parent492045e538cf806bb49631dfbbaabbd8b566147e (diff)
Fix add_gap function to push heights
-rwxr-xr-xsrc/structs.rs2
1 files changed, 1 insertions, 1 deletions
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]) {