gameServer2/src/protocol/parser.rs
changeset 13801 5fb40c8e5542
parent 13798 4664da990556
child 13805 0463a4221327
--- a/gameServer2/src/protocol/parser.rs	Fri Sep 07 04:16:05 2018 +0300
+++ b/gameServer2/src/protocol/parser.rs	Sun Sep 09 01:20:35 2018 +0300
@@ -197,7 +197,7 @@
     | do_parse!(tag!("SCHEME")   >> eol >>
                 name: a_line     >>
                 values: opt!(preceded!(eol, separated_list!(eol, a_line))) >>
-                (GameCfg::Scheme(name, values)))
+                (GameCfg::Scheme(name, values.unwrap_or(Vec::new()))))
     | do_parse!(tag!("FEATURE_SIZE") >> eol >>
                 value: u32_line    >>
                 (GameCfg::FeatureSize(value)))