fix parsing
This commit is contained in:
@@ -387,7 +387,7 @@ func (p *PacketServerCompanyInfo) Read(b []byte) {
|
||||
p.Name, _ = r.ReadString(0)
|
||||
p.Name = p.Name[:len(p.Name)-1]
|
||||
p.President, _ = r.ReadString(0)
|
||||
p.President = p.Name[:len(p.Name)-1]
|
||||
p.President = p.President[:len(p.President)-1]
|
||||
c, _ = r.ReadByte()
|
||||
p.Color = uint8(c)
|
||||
c, _ = r.ReadByte()
|
||||
@@ -417,7 +417,7 @@ func (p *PacketServerCompanyUpdate) Read(b []byte) {
|
||||
p.Name, _ = r.ReadString(0)
|
||||
p.Name = p.Name[:len(p.Name)-1]
|
||||
p.President, _ = r.ReadString(0)
|
||||
p.President = p.Name[:len(p.Name)-1]
|
||||
p.President = p.President[:len(p.President)-1]
|
||||
c, _ = r.ReadByte()
|
||||
p.Color = uint8(c)
|
||||
c, _ = r.ReadByte()
|
||||
|
||||
Reference in New Issue
Block a user