diff --git a/source/shared_lib/sources/graphics/particle.cpp b/source/shared_lib/sources/graphics/particle.cpp index e3bbd9c9e..a81889069 100644 --- a/source/shared_lib/sources/graphics/particle.cpp +++ b/source/shared_lib/sources/graphics/particle.cpp @@ -507,8 +507,9 @@ void GameParticleSystem::setTween(float relative,float absolute) { } if(tween < 0.0f || tween > 1.0f) { printf("ERROR setting tween to [%f]\n",tween); + assert(tween >= 0.0f && tween <= 1.0f); } - assert(tween >= 0.0f && tween <= 1.0f); + tween= clamp(tween, 0.0f, 1.0f); } for(Children::iterator it= children.begin(); it != children.end(); it++)