Bläddra i källkod

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

Co-authored-by: yyds <>
anjiev5 2 år sedan
förälder
incheckning
b7d2997933
1 ändrade filer med 1 tillägg och 1 borttagningar
  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;