Small changes to make sure song variable will be used after null checking
This commit is contained in:
1 parent
630a6242ae
commit
3fcb22269a
1 file changed
+1
-1
@@ -1090,7 +1090,6 @@ namespace Vocaluxe.Screens
|
|||||||
}
|
}
|
||||||
|
|
||||||
CSong song = CGame.GetSong();
|
CSong song = CGame.GetSong();
|
||||||
song.ReloadSong(reloadNotes);
|
|
||||||
|
|
||||||
if (song == null)
|
if (song == null)
|
||||||
{
|
{
|
||||||
@@ -1098,6 +1097,7 @@ namespace Vocaluxe.Screens
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
song.ReloadSong(reloadNotes);
|
||||||
string songname = song.Artist + " - " + song.Title;
|
string songname = song.Artist + " - " + song.Title;
|
||||||
int rounds = CGame.GetNumSongs();
|
int rounds = CGame.GetNumSongs();
|
||||||
if (rounds > 1)
|
if (rounds > 1)
|
||||||
|
|||||||
Reference in new issue
Block a user