Fix DrawableFlag returns empty texture if there's no flag avaliable for needed country

This commit is contained in:
Andrei Zavatski
2019-09-15 02:33:21 +03:00
parent bc2a1c91a1
commit babd34470e
2 changed files with 8 additions and 1 deletions

View File

@ -26,7 +26,7 @@ namespace osu.Game.Users.Drawables
if (ts == null)
throw new ArgumentNullException(nameof(ts));
Texture = ts.Get($@"Flags/{country?.FlagName ?? @"__"}");
Texture = ts.Get($@"Flags/{country?.FlagName ?? @"__"}") ?? ts.Get($@"Flags/__");
}
}
}