hexiaojie 10 月之前
父节点
当前提交
8e107059ce
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      GameClient/Assets/Editor/Excel/Scanner/ItemApproachScanner.cs

+ 5 - 0
GameClient/Assets/Editor/Excel/Scanner/ItemApproachScanner.cs

@@ -3,6 +3,7 @@ using UnityEngine;
 using GFGGame;
 using System;
 using System.Linq;
+using ET;
 
 namespace GFGEditor
 {
@@ -720,6 +721,10 @@ namespace GFGEditor
         private static bool CheckIsHasItem(int itemId, int checkId)
         {
             ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(checkId);
+            if (itemCfg == null)
+            {
+                Log.Error($"CheckIsHasItem itemCfg is null. itemId:{itemId} checkId:{checkId}");
+            }
             if (itemCfg.itemType == ConstItemType.USEABLE)
             {
                 for (int i = 0; i < itemCfg.itemsArr.Length; i++)