From 13e0865cc210b4b0b518c4e26a7419ef572afa55 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Sat, 18 Sep 2021 17:07:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9B=E7=81=B5=E5=8A=A9=E6=88=98=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../View/GeneralBigPopup_FourElementHelpFight.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_FourElementHelpFight.lua b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_FourElementHelpFight.lua index f028309cd0..7bc09624be 100644 --- a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_FourElementHelpFight.lua +++ b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_FourElementHelpFight.lua @@ -152,6 +152,10 @@ end function this:SetMyHeightPower() heightPower = 0 + if not myHeros or #myHeros < 0 then + heightPower = 0 + return + end for k,v in ipairs(myHeros) do if v.warPower > heightPower then heightPower = v.warPower