1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00
This commit is contained in:
wdvxdr 2021-01-30 18:47:43 +08:00
parent 59e689bd46
commit a782ccbf10
No known key found for this signature in database
GPG Key ID: 55FF1414A69CEBA6

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)
}
}
}