diff --git a/Assets/ManagedResources/~Lua/Modules/Formation/FormationEditPopup.lua b/Assets/ManagedResources/~Lua/Modules/Formation/FormationEditPopup.lua index 6c7ab506b2..4991bbe7b5 100644 --- a/Assets/ManagedResources/~Lua/Modules/Formation/FormationEditPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Formation/FormationEditPopup.lua @@ -79,7 +79,7 @@ function FormationEditPopup:BindEvent() table.insert(dids,v.did) end table.sort(dids,function (a,b) - return HeroManager.GetSingleHeroData(a.heroId).warPower > HeroManager.GetSingleHeroData(b.heroId).warPower + return HeroManager.GetSingleHeroData(a.did).warPower > HeroManager.GetSingleHeroData(b.did).warPower end) if #choosedList <= maxNum and #choosedList > 0 then NetManager.TrialHeroInfoSaveRequest(dids,function(msg)