diff --git a/Assets/ManagedResources/~Lua/Modules/Recruit/SingleRecruitPanel.lua b/Assets/ManagedResources/~Lua/Modules/Recruit/SingleRecruitPanel.lua index 838355c221..a982831827 100644 --- a/Assets/ManagedResources/~Lua/Modules/Recruit/SingleRecruitPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Recruit/SingleRecruitPanel.lua @@ -352,7 +352,7 @@ function SingleRecruitPanel:UpdataPanelData(_heroData) this.UI_Effect_appear:SetActive(false) Sound_Recruit3 = SoundManager.PlaySound(SoundConfig.Sound_Recruit3) - if heroStaticData and testLiveGO then + if heroStaticData and not IsNull(testLiveGO) then poolManager:UnLoadLive(GetResourcePath(heroStaticData.Live), testLiveGO) heroStaticData, testLiveGO = nil, nil end