mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Fix nullref exceptions and redundant explicit type
This commit is contained in:
@ -30,8 +30,7 @@ namespace osu.Game.Tournament.Components
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(Storage storage)
|
||||
{
|
||||
var tournamentStorage = storage as TournamentStorage;
|
||||
var stream = tournamentStorage.VideoStore.GetStream(filename);
|
||||
var stream = (storage as TournamentStorage)?.VideoStore.GetStream(filename);
|
||||
|
||||
if (stream != null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user