rust/hedgewars-server/src/handlers/inroom.rs
changeset 15552 a859f08ebb4f
parent 15550 17ad5d43e820
child 15553 ede5f4ec48f3
--- a/rust/hedgewars-server/src/handlers/inroom.rs	Thu Dec 26 17:39:09 2019 +0300
+++ b/rust/hedgewars-server/src/handlers/inroom.rs	Thu Dec 26 21:04:37 2019 +0300
@@ -51,7 +51,7 @@
 #[cfg(canhazslicepatterns)]
 fn is_msg_valid(msg: &[u8], team_indices: &[u8]) -> bool {
     match msg {
-        [size, typ, body @..] => {
+        [size, typ, body @ ..] => {
             VALID_MESSAGES.contains(typ)
                 && match body {
                     [1..=MAX_HEDGEHOGS_PER_TEAM, team, ..] if *typ == b'h' => {