gameServer2/src/protocol/parser.rs
changeset 13524 5359ff75da3a
parent 13520 1ee192f13456
child 13528 c8b626b0a3ad
--- a/gameServer2/src/protocol/parser.rs	Tue Jul 17 00:27:24 2018 +0300
+++ b/gameServer2/src/protocol/parser.rs	Tue Jul 17 16:03:34 2018 +0300
@@ -149,11 +149,11 @@
                     flag: a_line    >> eol >>
                     difficulty: u8_line >> eol >>
                     hedgehogs: _8_hogs >>
-                    (AddTeam(TeamInfo{
+                    (AddTeam(Box::new(TeamInfo{
                         name, color, grave, fort,
                         voice_pack, flag, difficulty,
                         hedgehogs, hedgehogs_number: 0
-                     })))
+                     }))))
     | do_parse!(tag!("HH_NUM")    >> eol >>
                     n: a_line     >> eol >>
                     c: u8_line    >>