From a127043349c03798f9f2248b928a7ab697b5aa99 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期六, 29 十二月 2018 01:08:27 +0800
Subject: [PATCH] 382 修复特效报错
---
Core/SFX/SFXController.cs | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/Core/SFX/SFXController.cs b/Core/SFX/SFXController.cs
index db994b9..0e07b6c 100644
--- a/Core/SFX/SFXController.cs
+++ b/Core/SFX/SFXController.cs
@@ -180,8 +180,11 @@
ParticleSystem.MainModule _mainModule;
for (int i = 0; i < m_CacheParticleSystem.Length; ++i)
{
- _mainModule = m_CacheParticleSystem[i].main;
- _mainModule.simulationSpeed = m_ParticleProperties[i].simulationSpeed * speed;
+ if (m_CacheParticleSystem[i])
+ {
+ _mainModule = m_CacheParticleSystem[i].main;
+ _mainModule.simulationSpeed = m_ParticleProperties[i].simulationSpeed * speed;
+ }
}
}
}
--
Gitblit v1.8.0