切换英雄按钮显示fix
This commit is contained in:
parent
e59b7f1ccb
commit
2d655fbb4f
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user