From 2d655fbb4f2508b467079c3a0ed208351e72e94e Mon Sep 17 00:00:00 2001 From: Fang Date: Mon, 24 Jul 2023 20:01:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E8=8B=B1=E9=9B=84=E6=8C=89?= =?UTF-8?q?=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