From e05da7f6fa1f04048a5d59dbf0c04e6b41a47847 Mon Sep 17 00:00:00 2001 From: IsseW Date: Thu, 9 Jun 2022 09:53:06 +0200 Subject: [PATCH] fix depot bug --- common/src/depot.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/common/src/depot.rs b/common/src/depot.rs index eed8bcf61c..c28f2d2254 100644 --- a/common/src/depot.rs +++ b/common/src/depot.rs @@ -160,6 +160,7 @@ impl Depot { entry.item = Some(item); assert!(entry.gen < u32::MAX); entry.gen += 1; + self.len += 1; Id { idx: idx as u32, gen: entry.gen,