Merge pull request #12441 from peppy/fix-potential-deselection-crash

Fix an occasional crash when deleting a HitObject via internal means
This commit is contained in:
Dan Balasescu 2021-04-16 17:15:52 +09:00 committed by GitHub
commit b8d5839baf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -438,8 +438,8 @@ private void onBlueprintSelected(SelectionBlueprint blueprint)
private void onBlueprintDeselected(SelectionBlueprint blueprint)
{
SelectionHandler.HandleDeselected(blueprint);
SelectionBlueprints.ChangeChildDepth(blueprint, 0);
SelectionHandler.HandleDeselected(blueprint);
Composer.Playfield.SetKeepAlive(blueprint.HitObject, false);
}