flixel icon indicating copy to clipboard operation
flixel copied to clipboard

Fix Frame Collections not being destroyed

Open NeeEoo opened this issue 2 years ago • 1 comments

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()

NeeEoo avatar Oct 02 '23 23:10 NeeEoo

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)

NeeEoo avatar Oct 02 '23 23:10 NeeEoo