rust/hedgewars-server/src/protocol/parser.rs
changeset 14785 a1077e8d26f4
parent 14783 b3adc030104b
child 14795 add191d825f4
--- a/rust/hedgewars-server/src/protocol/parser.rs	Wed Apr 10 19:30:08 2019 +0300
+++ b/rust/hedgewars-server/src/protocol/parser.rs	Wed Apr 10 23:56:53 2019 +0300
@@ -272,7 +272,7 @@
             |i| cmdc_single_arg(i, "SAVEROOM", a_line, SaveRoom),
             |i| cmdc_single_arg(i, "LOADROOM", a_line, LoadRoom),
             |i| cmdc_single_arg(i, "GLOBAL", a_line, Global),
-            |i| cmdc_single_arg(i, "WATCH", a_line, Watch),
+            |i| cmdc_single_arg(i, "WATCH", u32_line, Watch),
             |i| cmdc_single_arg(i, "GREETING", a_line, Greeting),
             |i| cmdc_single_arg(i, "VOTE", yes_no_line, Vote),
             |i| cmdc_single_arg(i, "FORCE", yes_no_line, ForceVote),
@@ -455,6 +455,7 @@
                     Ok((
                         i,
                         AddTeam(Box::new(TeamInfo {
+                            owner: String::new(),
                             name,
                             color,
                             grave,