From c76b44bb91fb49fd7ebc09d34ccdc293d9776324 Mon Sep 17 00:00:00 2001 From: Azaezel Date: Mon, 22 Dec 2014 18:03:52 -0600 Subject: [PATCH] Ref Count Catch With Permission from Jeff Faust. // AFX CODE BLOCK (bug-fix) << (no text, self evident) --- Engine/source/T3D/fx/particle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Engine/source/T3D/fx/particle.cpp b/Engine/source/T3D/fx/particle.cpp index 5b794748e..bf9e987f8 100644 --- a/Engine/source/T3D/fx/particle.cpp +++ b/Engine/source/T3D/fx/particle.cpp @@ -355,7 +355,7 @@ bool ParticleData::protectedSetSizes( void *object, const char *index, const cha U32 i; if (!index) - i = 0; + return (val >= 0.f && val <= MaxParticleSize); else i = dAtoui(index); @@ -371,7 +371,7 @@ bool ParticleData::protectedSetTimes( void *object, const char *index, const cha U32 i; if (!index) - i = 0; + return (val >= 0.f && val <= 1.f); else i = dAtoui(index);