This commit is contained in:
shoopea 2020-06-14 23:50:16 +02:00
parent a3432e1a61
commit 00aa926f69

View File

@ -95,8 +95,8 @@ func (p *PacketAdminJoin) Bytes() []byte {
} }
func (p *PacketAdminServerWelcome) Read(b []byte) { func (p *PacketAdminServerWelcome) Read(b []byte) {
r := bufio.NewReader(bytes.NewReader(b)) r := bufio.NewReader(bytes.NewReader(b))
r.Discard(3)
p.ServerName, _ = r.ReadString(0) p.ServerName, _ = r.ReadString(0)
p.OpenTTDVersion, _ = r.ReadString(0) p.OpenTTDVersion, _ = r.ReadString(0)
c, _ := r.ReadByte() c, _ := r.ReadByte()