Fix system user attempting to show in profile overlay

This commit is contained in:
Dean Herbert
2018-09-13 13:40:46 +09:00
parent 40f7c1bd99
commit 0be3ba946f
3 changed files with 13 additions and 6 deletions

View File

@ -144,5 +144,14 @@ namespace osu.Game.Users
public Badge[] Badges;
public override string ToString() => Username;
/// <summary>
/// A user instance for displaying locally created system messages.
/// </summary>
public static User SystemUser { get; } = new User
{
Username = "system",
Id = 0
};
}
}