mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
fix
This commit is contained in:
parent
59e689bd46
commit
a782ccbf10
@ -239,7 +239,10 @@ func (w *JceWriter) WriteJceStructRaw(s IJceStruct) {
|
|||||||
decoderCache.Store(ty2, jceDec) // 存入缓存
|
decoderCache.Store(ty2, jceDec) // 存入缓存
|
||||||
}
|
}
|
||||||
for _, dec := range jceDec {
|
for _, dec := range jceDec {
|
||||||
w.WriteObject(v.Field(dec.fieldID).Interface(), dec.id)
|
obj := v.Field(dec.fieldID).Interface()
|
||||||
|
if obj != nil {
|
||||||
|
w.WriteObject(obj, dec.id)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user