HaxeFlixel / flixel

Free, cross-platform 2D game engine powered by Haxe and OpenFL
https://haxeflixel.com/
MIT License
1.92k stars 427 forks source link

Don't attempt to retrieve frameCollections on a destroyed graphic. #3180

Closed EliteMasterEric closed 3 weeks ago

EliteMasterEric commented 3 weeks ago

This fixes a crash bug I encountered while developing Funkin'.

Geokureli commented 3 weeks ago

I'd like to see if previous destroy checks have covered this, do you know a solid way to reproduce this? Are you calling getFramesCollections manually or was this happening through intermediary functions?

EliteMasterEric commented 3 weeks ago

I think something was calling getFrameCollections manually. I don't recall exactly what I was working on but I think it was FlxAnimate?

Geokureli commented 3 weeks ago

Thanks!