From e67352c886a011ae689dd0dacb6d17cd8f8a3142 Mon Sep 17 00:00:00 2001 From: jake Date: Sun, 13 Oct 2019 13:13:28 -0700 Subject: [PATCH] check right part of buffer? why does this move --- src/login/character.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/login/character.rs b/src/login/character.rs index 74f6f0b..f75883e 100644 --- a/src/login/character.rs +++ b/src/login/character.rs @@ -340,7 +340,7 @@ impl ServerState for CharacterServerState { -> Result>, CharacterError> { Ok(match pkt { RecvCharacterPacket::Login(login) => { - if login.security_data[0..4] == [1,3,3,7] { + if login.security_data[8..12] == [1,3,3,7] { Box::new(self.send_ship_list(id, login)?.into_iter().map(move |pkt| (id, pkt))) } else {