consume vector without calling the iterator

This commit is contained in:
KyoZM 2019-10-07 01:49:56 -03:00
parent 5abe88ecee
commit 9ac089ae26

View File

@ -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(