Explorar o código

修复一个Id解析的bug

tanghai %!s(int64=2) %!d(string=hai) anos
pai
achega
2ebba03186

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

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