Prevent updateSelected from being repeatedly called

This commit is contained in:
sector-a
2025-12-29 20:55:21 -05:00
committed by Cameron Taylor
parent c63935a34a
commit 0c5b5900a5
+6 -2
View File
@@ -723,9 +723,13 @@ class SongMenuItem extends FlxSpriteGroup
function set_selected(value:Bool):Bool
{
// cute one liners, lol!
final wasSelected:Bool = selected;
selected = value;
updateSelected();
if (wasSelected != selected)
{
updateSelected();
}
return selected;
}