diff options
-rw-r--r-- | modules/sparkler/particles.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/sparkler/particles.c b/modules/sparkler/particles.c index daf60ef..cce8d7f 100644 --- a/modules/sparkler/particles.c +++ b/modules/sparkler/particles.c @@ -231,7 +231,10 @@ static inline void _particles_draw(particles_t *particles, list_head_t *list, fb y = ((float)(p->props.position.y / (p->props.position.z - ZCONST)) * h2) + h2; particle_draw(particles, &p->public, x, y, fragment); - _particles_draw(particles, &p->children, fragment); + + if (!list_empty(&p->children)) { + _particles_draw(particles, &p->children, fragment); + } } } |