--- a/gameServer2/src/server/handlers/inroom.rs Wed Jul 04 00:01:25 2018 +0300
+++ b/gameServer2/src/server/handlers/inroom.rs Wed Jul 04 04:42:16 2018 +0300
@@ -221,9 +221,10 @@
if !c.is_master {
vec![ProtocolError("You're not the room master!".to_string())]
} else {
- r.set_config(cfg.clone());
- vec![cfg.into_server_msg()
- .send_all().in_room(r.id).but_self().action()]
+ let v = vec![cfg.to_server_msg()
+ .send_all().in_room(r.id).but_self().action()];
+ r.set_config(cfg);
+ v
}
} else {
Vec::new()