tset
This commit is contained in:
parent
a3432e1a61
commit
00aa926f69
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user