From 3036036624aeaa3f31b76ffbe84b18b692dac18f Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期一, 14 一月 2019 14:06:49 +0800
Subject: [PATCH] 2647 【1.3.100】上古战场机器人偶发技能特效不消失

---
 Fight/GameActor/GActorPlayerBase.cs |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/Fight/GameActor/GActorPlayerBase.cs b/Fight/GameActor/GActorPlayerBase.cs
index a51aae7..28d4406 100644
--- a/Fight/GameActor/GActorPlayerBase.cs
+++ b/Fight/GameActor/GActorPlayerBase.cs
@@ -264,6 +264,15 @@
 
         if (m_ClothesModel)
         {
+            SFXController[] _ctrls = m_ClothesModel.GetComponentsInChildren<SFXController>();
+            if (_ctrls != null && _ctrls.Length > 0)
+            {
+                for (int i = 0; i < _ctrls.Length; ++i)
+                {
+                    SFXPlayUtility.Instance.Release(_ctrls[i]);
+                }
+            }
+
             _resID = JobSetup.BaseEquip[0];
             if (ClothesItemID != 0)
             {
@@ -281,12 +290,6 @@
                     m_ClothesAnimator.enabled = false;
                     m_ClothesAnimator = null;
                 }
-            }
-
-            SFXController[] _ctrls = m_ClothesModel.GetComponentsInChildren<SFXController>();
-            for (int i = 0; i < _ctrls.Length; ++i)
-            {
-                SFXPlayUtility.Instance.Release(_ctrls[i]);
             }
         }
 

--
Gitblit v1.8.0