From b18b3b95f504da6f9047f96da18c96934ca309ec Mon Sep 17 00:00:00 2001 From: "DESKTOP-SAJ6RKV\\Administrator" Date: Fri, 27 Jun 2025 11:55:11 +0800 Subject: [PATCH] 1 --- .../Assets/GameScripts/HotFix/GameLogic/UI/UIGiftItem.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGiftItem.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGiftItem.cs index dc0654ae..441078a4 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGiftItem.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGiftItem.cs @@ -35,6 +35,11 @@ namespace GameLogic //m_Group.sprite = GameModule.Resource.LoadAsset("Z_lw_t_box_" + (giftConfig.Id - 1)); + if (unitPlayerData == null) + { + Destroy(gameObject); + return; + } Log.Debug("送礼玩家阵营id:" + unitPlayerData.teamId);