Преглед изворни кода

修复一个Id解析的bug

tanghai пре 2 година
родитељ
комит
2ebba03186
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Unity/Assets/Scripts/Core/World/Module/IdGenerater/IdGenerater.cs

+ 1 - 1
Unity/Assets/Scripts/Core/World/Module/IdGenerater/IdGenerater.cs

@@ -32,7 +32,7 @@ namespace ET
         public IdStruct(long id)
         {
             ulong result = (ulong) id; 
-            this.Value = (ushort) (result & IdGenerater.Mask20bit);
+            this.Value = (uint) (result & IdGenerater.Mask20bit);
             result >>= 20;
             this.Time = (uint) result & IdGenerater.Mask30bit;
             result >>= 30;