Browse Source

check right part of buffer? why does this move

pbs
jake 5 years ago
parent
commit
e67352c886
  1. 2
      src/login/character.rs

2
src/login/character.rs

@ -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 {

Loading…
Cancel
Save