Parcourir la source

[fix] SegmentStruct 构建函数 SegHead 字段 删除重复初始化 (#572)

Co-authored-by: zengfeng <fengzeng@123u.com>
ihaiu il y a 1 an
Parent
commit
5e0242836d
1 fichiers modifiés avec 0 ajouts et 1 suppressions
  1. 0 1
      Unity/Assets/Scripts/ThirdParty/Kcp/Segment.cs

+ 0 - 1
Unity/Assets/Scripts/ThirdParty/Kcp/Segment.cs

@@ -38,7 +38,6 @@ namespace ET
         {
             this.arrayPool = arrayPool;
             buffer = arrayPool.Rent(size);
-            this.SegHead = new Kcp.SegmentHead() { len = 0 };
             this.SegHead = default;
             this.resendts = default;
             this.rto = default;