Main/System/HeroUI/HeroFormationWin.cs
@@ -23,8 +23,16 @@
    {
        scroller.OnRefreshCell += OnRefreshCell;
        CreateScroller();
        Int2 result = HeroUIManager.Instance.GetMaxCountHeroCountry(HeroUIManager.Instance.selectTeamType, true);
        Int2 result;
        if (HeroUIManager.Instance.isCustonHeroFormation)
        {
            result = HeroUIManager.Instance.GetMaxCountHeroCountry(HeroUIManager.Instance.custonTeamHeroes);;
        }
        else
        {
            result = HeroUIManager.Instance.GetMaxCountHeroCountry(HeroUIManager.Instance.selectTeamType, true);
        }
        var config = HeroLineupHaloConfig.GetConfig(result.x, result.y);
        if (config == null)