From eb27e5fd31f73b998a4bbd85511a31e40b8c61b7 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 21 十一月 2025 17:03:47 +0800
Subject: [PATCH] 0312 关闭游戏内日志

---
 Main/System/HeroUI/HeroConnectionCell.cs |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/Main/System/HeroUI/HeroConnectionCell.cs b/Main/System/HeroUI/HeroConnectionCell.cs
index 01035cd..a5a2102 100644
--- a/Main/System/HeroUI/HeroConnectionCell.cs
+++ b/Main/System/HeroUI/HeroConnectionCell.cs
@@ -18,8 +18,13 @@
     {
         HeroFetterConfig heroFetterConfig = HeroFetterConfig.Get(fetterID);
 
-        int fromHeroID = HeroManager.Instance.GetHero(guid).heroId;
-        int _skinID = HeroManager.Instance.GetHero(guid).SkinID;
+        int fromHeroID = 0;
+        int _skinID = 0;
+        if (guid != "")
+        {
+            fromHeroID = HeroManager.Instance.GetHero(guid).heroId;
+            _skinID = HeroManager.Instance.GetHero(guid).SkinID;
+        }
         for (int i = 0; i < heros.Length; i++)
         {
             if (i < heroFetterConfig.HeroIDList.Length)

--
Gitblit v1.8.0