# HG changeset patch # User nemo # Date 1565899677 14400 # Node ID 1360234171643794425a93a5ed6f77e9a773861e # Parent 11b3d4869f6df4698a8a484e95d9956ade7f8f31 just to make it build against nightly diff -r 11b3d4869f6d -r 136023417164 rust/hedgewars-server/src/handlers/inroom.rs --- 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' => {