瀏覽代碼

修复空指针问题! (#503)

Co-authored-by: yyds <>
anjiev5 2 年之前
父節點
當前提交
b7d2997933
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Unity/Assets/Scripts/Core/Entity/EntityRef.cs

+ 1 - 1
Unity/Assets/Scripts/Core/Entity/EntityRef.cs

@@ -57,7 +57,7 @@ namespace ET
 
         private EntityWeakRef(T t)
         {
-            if (t != null)
+            if (t == null)
             {
                 this.instanceId = 0;
                 this.weakRef = null;