|
@@ -23,7 +23,7 @@ namespace GFGGame
|
|
|
public int GetItemSuitId(int itemId)
|
|
|
{
|
|
|
var itemCfg = ItemCfgArray.Instance.GetCfg(itemId);
|
|
|
- if(itemCfg != null)
|
|
|
+ if (itemCfg != null)
|
|
|
{
|
|
|
return itemCfg.suitId;
|
|
|
}
|
|
@@ -38,7 +38,7 @@ namespace GFGGame
|
|
|
public int GetTotalCountOfOneSuit(int suitId)
|
|
|
{
|
|
|
var suitCfg = SuitCfgArray.Instance.GetCfg(suitId);
|
|
|
- if(suitCfg != null)
|
|
|
+ if (suitCfg != null)
|
|
|
{
|
|
|
return suitCfg.partsArr.Length;
|
|
|
}
|
|
@@ -54,6 +54,11 @@ namespace GFGGame
|
|
|
{
|
|
|
|
|
|
SuitCfg suitCfg = SuitCfgArray.Instance.GetCfg(suitId);
|
|
|
+ if (suitCfg == null)
|
|
|
+ {
|
|
|
+ ET.Log.Error(suitId + "SuitCfgArrayÅäÖò»´æÔÚ");
|
|
|
+ return null;
|
|
|
+ }
|
|
|
if (checkScene)
|
|
|
{
|
|
|
List<int> parts = new List<int>();
|