少年修仙传客户端代码仓库
client_Zxw
2018-08-29 c9caeb44144b88cefbc0c855086cb11d986d8d70
System/Compose/New/SelectEquipModel.cs
@@ -57,9 +57,10 @@
    public Dictionary<int, ItemModel> GetUnfixedItemModel()
    {
        SinglePackModel singlePack = playerPack.GetSinglePackModel(PackType.rptItem);
        if (singlePack == null)
        if (singlePack == null || composeWinModel.CurComposeModel == null)
            return null;
        int[] unfixedIds = ItemCompoundConfig.GetDisplayArrayByType(composeWinModel.CurComposeModel.id,DisplayItemArray.UnfixedIds);
        allBagItemInfo = singlePack.GetPackModelIndexDict();
        _unfixedItemDict.Clear();
        foreach (int key in allBagItemInfo.Keys)
@@ -67,9 +68,9 @@
            if (!haveUnfixedSelectItemDic.ContainsKey(key))
            {
                int i = 0;
                for (i = 0; i < composeWinModel.unfixedItemIDs.Length; i++)
                for (i = 0; i < unfixedIds.Length; i++)
                {
                    if (composeWinModel.unfixedItemIDs[i] == allBagItemInfo[key].itemInfo.ItemID)
                    if (unfixedIds[i] == allBagItemInfo[key].itemInfo.ItemID)
                    {
                        _unfixedItemDict.Add(key, allBagItemInfo[key]);
                        break;