mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
use into_iter
This commit is contained in:
parent
3a61fb15b2
commit
678dffeb9f
@ -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 });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user