1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-06-30 20:03:25 +00:00
This commit is contained in:
wdvxdr
2021-01-30 18:47:43 +08:00
parent 59e689bd46
commit a782ccbf10

View File

@ -239,7 +239,10 @@ func (w *JceWriter) WriteJceStructRaw(s IJceStruct) {
decoderCache.Store(ty2, 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)
}
}
}