flixel
flixel copied to clipboard
Fix Frame Collections not being destroyed
Unsure if this causes any crashes elsewhere so thats why this is a draft
Btw FlxImageFrame got edited because frames gets destroyed in super.destroy()
If you use a graphic that has been destroyed it causes this error
Called from flixel.animation.FlxAnimationController::update flixel/animation/FlxAnimationController.hx line 93
Called from flixel.animation.FlxAnimation::update flixel/animation/FlxAnimation.hx line 223
Called from flixel.animation.FlxAnimation::set_curFrame flixel/animation/FlxAnimation.hx line 267
Called from flixel.animation.FlxBaseAnimation::set_curIndex flixel/animation/FlxBaseAnimation.hx line 36
Called from flixel.animation.FlxAnimationController::set_frameIndex flixel/animation/FlxAnimationController.hx line 751
Called from flixel.FlxSprite::set_frame flixel/FlxSprite.hx line 1469
(line numbers might be off a little bit since found this on a bit older version)