mirror of
https://github.com/ppy/osu.git
synced 2026-05-22 21:00:58 +08:00
Fix potential exception during removal
This commit is contained in:
@@ -33,13 +33,14 @@ namespace osu.Game.Rulesets.UI
|
||||
|
||||
public virtual bool Remove(DrawableHitObject hitObject)
|
||||
{
|
||||
bool result = RemoveInternal(hitObject);
|
||||
if (!RemoveInternal(hitObject))
|
||||
return false;
|
||||
|
||||
// Removed last for the comparer to remain ordered during RemoveInternal
|
||||
startTimeMap[hitObject].bindable.UnbindAll();
|
||||
startTimeMap.Remove(hitObject);
|
||||
|
||||
return result;
|
||||
return true;
|
||||
}
|
||||
|
||||
private void onStartTimeChanged(DrawableHitObject hitObject)
|
||||
|
||||
Reference in New Issue
Block a user