From 2d655fbb4f2508b467079c3a0ed208351e72e94e Mon Sep 17 00:00:00 2001 From: Fang Date: Mon, 24 Jul 2023 20:01:22 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=87=E6=8D=A2=E8=8B=B1=E9=9B=84?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=98=BE=E7=A4=BAfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/hero/hero_detail_ui.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/app/ui/hero/hero_detail_ui.lua b/lua/app/ui/hero/hero_detail_ui.lua index 94003dc0..a7094f00 100644 --- a/lua/app/ui/hero/hero_detail_ui.lua +++ b/lua/app/ui/hero/hero_detail_ui.lua @@ -124,7 +124,7 @@ end function HeroDetailUI:updateSide() for index, data in ipairs(self.heroList) do - if data.cfgId == self.heroEntity.id then + if data.cfgId == self.heroEntity:getCfgId() then self.idxLast = index - 1 self.idxNext = index + 1 end From 5bfb500ed80ae38893cf2f15ea5c500e0bc9dfe1 Mon Sep 17 00:00:00 2001 From: Fang Date: Mon, 24 Jul 2023 20:10:10 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=A3=85=E5=A4=87=E9=98=B6=E6=AE=B5?= =?UTF-8?q?=E8=AE=A1=E7=AE=97fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/userdata/equip/equip_entity.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/app/userdata/equip/equip_entity.lua b/lua/app/userdata/equip/equip_entity.lua index 564240df..c7e73fda 100644 --- a/lua/app/userdata/equip/equip_entity.lua +++ b/lua/app/userdata/equip/equip_entity.lua @@ -180,7 +180,7 @@ function EquipEntity:getStage() if self.level < level then break end - stage = idx - 1 + stage = idx end return stage end