use into_iter

This commit is contained in:
Isse 2023-10-15 23:10:14 +02:00
parent 3a61fb15b2
commit 678dffeb9f

View File

@ -573,9 +573,9 @@ impl State {
}
let outcome = self.ecs.read_resource::<EventBus<Outcome>>();
while let Some(outcomes) = scheduled_changes.outcomes.poll(current_time) {
for (pos, block) in outcomes.iter() {
for (pos, block) in outcomes.into_iter() {
if let Some(sprite) = block.get_sprite() {
outcome.emit_now(Outcome::SpriteDelete { pos: *pos, sprite });
outcome.emit_now(Outcome::SpriteDelete { pos, sprite });
}
}
}