mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix depot bug
This commit is contained in:
parent
b12dc3b020
commit
e05da7f6fa
@ -160,6 +160,7 @@ impl<T> Depot<T> {
|
||||
entry.item = Some(item);
|
||||
assert!(entry.gen < u32::MAX);
|
||||
entry.gen += 1;
|
||||
self.len += 1;
|
||||
Id {
|
||||
idx: idx as u32,
|
||||
gen: entry.gen,
|
||||
|
Loading…
Reference in New Issue
Block a user