From 2d9643c12749ab31a851a5203cfbe512164e7b32 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Mon, 14 Sep 2020 14:39:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E5=87=BB=E4=B8=87=E8=B1=A1=E5=A2=83?= =?UTF-8?q?=E5=90=8E=20=E7=82=B9=E5=87=BB=E5=88=87=E6=8D=A2=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E5=8D=A1=E6=AD=BB=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Carbon/CarbonTypePanelV2.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonTypePanelV2.lua b/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonTypePanelV2.lua index 8066105259..0ed1ded7f1 100644 --- a/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonTypePanelV2.lua +++ b/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonTypePanelV2.lua @@ -507,7 +507,9 @@ function CarbonTypePanelV2:OnDestroy() SubUIManager.Close(this.BtView) end carbons = {} - SubUIManager.Close(this.playerHead) + if this.playerHead then + SubUIManager.Close(this.playerHead) + end SubUIManager.Close(this.UpView) this.playerHead = nil this.UpView = nil