diff --git a/agb/src/hash_map.rs b/agb/src/hash_map.rs index a5183c72..e4688be9 100644 --- a/agb/src/hash_map.rs +++ b/agb/src/hash_map.rs @@ -657,7 +657,7 @@ impl NodeStorage { where K: Eq, { - for distance_to_initial_bucket in 0..=self.max_distance_to_initial_bucket { + for distance_to_initial_bucket in 0..(self.max_distance_to_initial_bucket + 1) { let location = fast_mod( self.nodes.len(), hash + distance_to_initial_bucket as HashType,