【角色信息】修复跳转到角色信息界面,点击左右箭头报错

dev_chengFeng
gaoxin 2021-09-26 17:38:23 +08:00
parent e61dea0f4a
commit b21e7efe0d
1 changed files with 2 additions and 2 deletions

View File

@ -315,7 +315,7 @@ end
--右切换按钮点击
function this:RightBtnOnClick()
-- 英雄长按升级时不再进行切换操作
if this.PageList[1].isPressed then
if this.PageList[1] and this.PageList[1].isPressed then
return
end
if isClickLeftOrRightBtn == false then
@ -357,7 +357,7 @@ end
--左切换按钮点击
function this:LeftBtnOnClick()
-- 英雄长按升级时不再进行切换操作
if this.PageList[1].isPressed then
if this.PageList[1] and this.PageList[1].isPressed then
return
end