mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +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);
|
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() {
|
for (idx, enemy) in self.enemies.iter_mut() {
|
||||||
if enemy.entity.position.x < self.offset.x - 8 {
|
if enemy.entity.position.x < self.offset.x - 8 {
|
||||||
remove.push(idx);
|
remove.push(idx);
|
||||||
|
|
Loading…
Reference in a new issue