1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 21:07:33 +08:00

Add assert to ensure complete is only called once.

This commit is contained in:
Dean Herbert 2017-02-10 16:58:40 +09:00
parent dd8ec70bd5
commit 398ac6f459
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -106,6 +106,8 @@ namespace osu.Game.Overlays.Notifications
public void Complete()
{
Debug.Assert(state != ProgressNotificationState.Completed);
state = ProgressNotificationState.Completed;
NotificationContent.MoveToY(-DrawSize.Y / 2, 200, EasingTypes.OutQuint);