check right part of buffer? why does this move

This commit is contained in:
jake 2019-10-13 13:13:28 -07:00
parent 318c108f14
commit e67352c886

View File

@ -340,7 +340,7 @@ impl<EG: EntityGateway> ServerState for CharacterServerState<EG> {
-> Result<Box<dyn Iterator<Item = (ClientId, SendCharacterPacket)>>, 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 {