From 9ab689527b3ede7750579b1a926cf0cf88813463 Mon Sep 17 00:00:00 2001 From: Arne Dußin Date: Wed, 3 Feb 2021 16:26:59 +0100 Subject: Add capability to draw rooms --- src/stable_vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stable_vec.rs') diff --git a/src/stable_vec.rs b/src/stable_vec.rs index c3b8685..4d25e0e 100644 --- a/src/stable_vec.rs +++ b/src/stable_vec.rs @@ -55,7 +55,7 @@ impl StableVec { if self.data.is_empty() { 0 } else if self.data.last().unwrap().0 < usize::MAX { - self.data.last().unwrap().0 + self.data.last().unwrap().0 + 1 } else { // Try to find a position in the vector that is still free, starting at the bottom. let mut prev_id = self.data.first().unwrap().0; -- cgit v1.2.3-70-g09d2