From 89343a7a0909e5244a3b69c4db1294de4536243b Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期一, 15 十二月 2025 18:15:22 +0800
Subject: [PATCH] 262 幻境阁系统-客户端 新增仅适用武将解锁的头像和形象的红点移除规则

---
 Main/Core/NetworkPackage/GameNetPackBasic.cs |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/Main/Core/NetworkPackage/GameNetPackBasic.cs b/Main/Core/NetworkPackage/GameNetPackBasic.cs
index 56f9dbe..77914ab 100644
--- a/Main/Core/NetworkPackage/GameNetPackBasic.cs
+++ b/Main/Core/NetworkPackage/GameNetPackBasic.cs
@@ -962,6 +962,10 @@
     {
         try
         {
+            if (vInts.IsNullOrEmpty())
+            {
+                return;
+            }
             if (vInts.Length != vLockLeng)
                 Array.Resize(ref vInts, vLockLeng);
             this.WriteBytes(vInts, vType);
@@ -978,6 +982,10 @@
     {
         try
         {
+            if (vInts.IsNullOrEmpty())
+            {
+                return;
+            }
             if (vInts.Length != vLockLeng)
                 Array.Resize(ref vInts, vLockLeng);
             this.WriteBytes(vInts, vType);
@@ -993,6 +1001,10 @@
     {
         try
         {
+            if (vInts.IsNullOrEmpty())
+            {
+                return;
+            }
             if (vWriteLen == StrWriteLen.BYTE)
                 this.WriteBytes(new Byte[] { (byte)vInts.Length });
             else if (vWriteLen == StrWriteLen.WORD)
@@ -1012,6 +1024,10 @@
     {
         try
         {
+            if (vInts.IsNullOrEmpty())
+            {
+                return;
+            }
             int l = vInts.Length;
             byte[] vRst;
             int i;
@@ -1051,6 +1067,10 @@
     {
         try
         {
+            if (vInts.IsNullOrEmpty())
+            {
+                return;
+            }
             int l = vInts.Length;
             byte[] vRst;
             int i;
@@ -1147,6 +1167,11 @@
     {
         try
         {
+            if (vBytes.IsNullOrEmpty())
+            {
+                return;
+            }
+
             Array.Resize(ref _writedBytes, _writeIndex + vBytes.Length);
             vBytes.CopyTo(_writedBytes, _writeIndex);
             _writeIndex = _writedBytes.Length;

--
Gitblit v1.8.0