From 550d0c43be35cd07e390ffd5749557c89fee0332 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Fri, 1 Jul 2022 15:40:06 +0900 Subject: [PATCH] fix: if `m_Particles` contains null, an error will occur close #214 --- Scripts/UIParticle.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Scripts/UIParticle.cs b/Scripts/UIParticle.cs index fa53467..af51c18 100644 --- a/Scripts/UIParticle.cs +++ b/Scripts/UIParticle.cs @@ -290,6 +290,7 @@ namespace Coffee.UIExtensions var j = 0; for (var i = 0; i < particles.Count; i++) { + if (!particles[i]) continue; GetRenderer(j++).Set(this, particles[i], false); if (particles[i].trails.enabled) {