From c86ac709445245b91933435da842e2037d8a9808 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 31 十月 2025 11:18:23 +0800
Subject: [PATCH] 125 战斗 组合包报错问题打印提交(排查溯源
---
Main/Core/NetworkPackage/CustomServerPack/CustomHB426CombinePack.cs | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Main/Core/NetworkPackage/CustomServerPack/CustomHB426CombinePack.cs b/Main/Core/NetworkPackage/CustomServerPack/CustomHB426CombinePack.cs
index f509709..6261f72 100644
--- a/Main/Core/NetworkPackage/CustomServerPack/CustomHB426CombinePack.cs
+++ b/Main/Core/NetworkPackage/CustomServerPack/CustomHB426CombinePack.cs
@@ -325,6 +325,11 @@
if (startTag.Tag.StartsWith("Skill_"))
{
+ if (packList.Count <= 0)
+ {
+ Debug.LogError("No HB427_tagSCUseSkill found in packList." + startTag.Tag);
+ return null;
+ }
HB427_tagSCUseSkill skill = packList[0] as HB427_tagSCUseSkill;
packList.RemoveAt(0);
if (null == skill)
--
Gitblit v1.8.0