Skip to content

Commit f0e0ddb

Browse files
authored
fix persist behavior (#3400)
1 parent e8205ac commit f0e0ddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flixel/graphics/atlas/FlxAtlas.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ class FlxAtlas implements IFlxDestroyable
810810

811811
function onClear(_):Void
812812
{
813-
if (!persist || (_graphic != null && _graphic.useCount <= 0))
813+
if (!persist && _graphic != null && _graphic.useCount <= 0)
814814
destroy();
815815
}
816816

0 commit comments

Comments
 (0)