author | nemo |
Thu, 15 Aug 2019 16:07:57 -0400 | |
changeset 15326 | 136023417164 |
parent 15325 | 11b3d4869f6d |
child 15327 | 2196aa902d2d |
--- a/rust/hedgewars-server/src/handlers/inroom.rs Thu Aug 15 21:15:32 2019 +0200 +++ b/rust/hedgewars-server/src/handlers/inroom.rs Thu Aug 15 16:07:57 2019 -0400 @@ -49,7 +49,7 @@ #[cfg(canhazslicepatterns)] fn is_msg_valid(msg: &[u8], team_indices: &[u8]) -> bool { match msg { - [size, typ, body..] => { + [size, typ, body..MAX] => { VALID_MESSAGES.contains(typ) && match body { [1...MAX_HEDGEHOGS_PER_TEAM, team, ..] if *typ == b'h' => {