hexiaojie 10 months ago
parent
commit
8e107059ce
1 changed files with 5 additions and 0 deletions
  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++)