rust/hedgewars-server/src/server/handlers/inroom.rs
changeset 14810 18240b308505
parent 14809 6dea1ca64992
child 14811 e94fbf6cad2b
--- a/rust/hedgewars-server/src/server/handlers/inroom.rs	Thu Apr 11 19:30:22 2019 +0300
+++ b/rust/hedgewars-server/src/server/handlers/inroom.rs	Thu Apr 11 21:20:41 2019 +0300
@@ -446,7 +446,7 @@
             match error {
                 None => {
                     let msg = voting_description(&kind);
-                    let voting = Voting::new(kind, server.collect_room_clients(client_id));
+                    let voting = Voting::new(kind, server.room_clients(client_id).collect());
                     let room = &mut server.rooms[room_id];
                     room.voting = Some(voting);
                     response.add(server_chat(msg).send_all().in_room(room_id));