gameServer2/src/server/handlers/inroom.rs
changeset 13439 c4f917c6be51
parent 13429 4c5ed27b1ff8
child 13443 2501428303a2
--- 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()