切换英雄按钮显示fix

This commit is contained in:
Fang 2023-07-24 20:01:22 +08:00
parent e59b7f1ccb
commit 2d655fbb4f

View File

@ -124,7 +124,7 @@ end
function HeroDetailUI:updateSide() function HeroDetailUI:updateSide()
for index, data in ipairs(self.heroList) do 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.idxLast = index - 1
self.idxNext = index + 1 self.idxNext = index + 1
end end