소스 검색

修复一个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;