From eb33d2ea99885fd525787503c0a3824b9388e020 Mon Sep 17 00:00:00 2001 From: 1076390229 <1076390229@qq.com> Date: Thu, 12 Mar 2026 22:34:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E7=BB=93=E7=AE=97=EF=BC=8C=E4=BD=86?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=8F=96=E6=B6=88=E6=89=98=E7=AE=A1=E4=BC=9A?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zipai/fanpaofa/main/ZPPlayerSelfCardInfoView.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lua_probject/extend_project/extend/zipai/fanpaofa/main/ZPPlayerSelfCardInfoView.lua b/lua_probject/extend_project/extend/zipai/fanpaofa/main/ZPPlayerSelfCardInfoView.lua index fdceef34..3f3e6694 100644 --- a/lua_probject/extend_project/extend/zipai/fanpaofa/main/ZPPlayerSelfCardInfoView.lua +++ b/lua_probject/extend_project/extend/zipai/fanpaofa/main/ZPPlayerSelfCardInfoView.lua @@ -241,9 +241,11 @@ function M:InitHandCard(isPlayAni, index) end pokerListNum = pokerListNum + 1 local card_view = self.card_list[j] - card_view.btn_card:RemoveFromParent() - self._area_handcard_list:AddChild(card_view.btn_card) - card_view.btn_card:TweenMove(self:GetHandCardPos(card_view, self.cards_count), 0.08) + if card_view ~= nil then + card_view.btn_card:RemoveFromParent() + self._area_handcard_list:AddChild(card_view.btn_card) + card_view.btn_card:TweenMove(self:GetHandCardPos(card_view, self.cards_count), 0.08) + end end end self:UpdateHandCardsPos()