pixijs / particle-emitter

A particle system for PixiJS
http://pixijs.io/particle-emitter/docs
MIT License
800 stars 128 forks source link

LinkedListContainer doesn't play nice with Destroy method #179

Closed miltoncandelero closed 2 years ago

miltoncandelero commented 2 years ago

The destroy method for container has the line const oldChildren = this.removeChildren(0, this.children.length); however in a linkedList the children array always returns length zero (empty array).

This causes an out of range exception in the removeChildren method

andrewstart commented 2 years ago

It took a minute to puzzle out why it was going wrong, but this has been fixed in v5.0.7!