mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
consume vector without calling the iterator
This commit is contained in:
parent
5abe88ecee
commit
9ac089ae26
@ -998,8 +998,8 @@ fn handle_remove_lights(
|
||||
|
||||
let size = to_delete.len();
|
||||
|
||||
for entity in to_delete.iter() {
|
||||
let _ = server.state.ecs_mut().delete_entity_synced(*entity);
|
||||
for entity in to_delete {
|
||||
let _ = server.state.ecs_mut().delete_entity_synced(entity);
|
||||
}
|
||||
|
||||
server.clients.notify(
|
||||
|
Loading…
Reference in New Issue
Block a user