From dc7922d80c1d133b6261b8af1d521567d2c0a35d Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 30 十月 2025 16:51:39 +0800
Subject: [PATCH] Merge branch 'master' of http://mobile.secondworld.net.cn:10010/r/Project_SG_scripts
---
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