mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
pointless capacity
This commit is contained in:
parent
8bef214797
commit
a5c1d62cad
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue