fix parsing

This commit is contained in:
shoopea 2021-11-07 20:27:27 +08:00
parent 2215691125
commit f56d25e76d
2 changed files with 6 additions and 6 deletions

View File

@ -387,7 +387,7 @@ func (p *PacketServerCompanyInfo) Read(b []byte) {
p.Name, _ = r.ReadString(0) p.Name, _ = r.ReadString(0)
p.Name = p.Name[:len(p.Name)-1] p.Name = p.Name[:len(p.Name)-1]
p.President, _ = r.ReadString(0) p.President, _ = r.ReadString(0)
p.President = p.Name[:len(p.Name)-1] p.President = p.President[:len(p.President)-1]
c, _ = r.ReadByte() c, _ = r.ReadByte()
p.Color = uint8(c) p.Color = uint8(c)
c, _ = r.ReadByte() c, _ = r.ReadByte()
@ -417,7 +417,7 @@ func (p *PacketServerCompanyUpdate) Read(b []byte) {
p.Name, _ = r.ReadString(0) p.Name, _ = r.ReadString(0)
p.Name = p.Name[:len(p.Name)-1] p.Name = p.Name[:len(p.Name)-1]
p.President, _ = r.ReadString(0) p.President, _ = r.ReadString(0)
p.President = p.Name[:len(p.Name)-1] p.President = p.President[:len(p.President)-1]
c, _ = r.ReadByte() c, _ = r.ReadByte()
p.Color = uint8(c) p.Color = uint8(c)
c, _ = r.ReadByte() c, _ = r.ReadByte()

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT. // Code generated by version.sh (@generated) DO NOT EDIT.
package main package main
var githash = "40df5ba" var githash = "2215691"
var buildstamp = "2021-11-07_12:10:24" var buildstamp = "2021-11-07_12:27:18"
var commits = "165" var commits = "166"
var version = "40df5ba-b165 - 2021-11-07_12:10:24" var version = "2215691-b166 - 2021-11-07_12:27:18"