From 16625adb846ad93fe0596d9db728b0e1011514d4 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Wed, 14 Apr 2021 20:06:07 +0800 Subject: [PATCH] --- .../~Lua/Modules/Formation/FormationEditPopup.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)