--- 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));