pointless capacity

This commit is contained in:
Corwin 2023-04-17 23:48:26 +01:00
parent 8bef214797
commit a5c1d62cad
No known key found for this signature in database

View file

@ -1978,7 +1978,7 @@ impl<'a> Game<'a> {
self.particles.insert(new_particle);
}
let mut remove = Vec::with_capacity(10);
let mut remove = Vec::new();
for (idx, enemy) in self.enemies.iter_mut() {
if enemy.entity.position.x < self.offset.x - 8 {
remove.push(idx);