Bugfix: Crash when starting duet songs.

Please TEST, TEST and TEST before commit! It can't be that this branch contains such silly bugs!
This commit is contained in:
Alexander Eckart authored and Florian Küpper committed 2013-12-26 13:03:13 +01:00
1 parent 8854bcd6ac
commit b5b49b837a
1 file changed
+2 -2
+2 -2
View File
@@ -599,7 +599,7 @@ namespace Vocaluxe.Screens
_CheckMics();
_CheckPlayers();
CSong firstSong = CGame.GetSong(0);
CSong firstSong = CGame.GetSong(1);
for (int i = 0; i < CSettings.MaxNumPlayer; i++)
{
@@ -608,7 +608,7 @@ namespace Vocaluxe.Screens
CProfiles.GetAvatarTextureFromProfile(CGame.Players[i].ProfileID) :
_OriginalPlayerAvatarTextures[i];
_Texts[_TextPlayer[i]].Text = CProfiles.GetPlayerName(CGame.Players[i].ProfileID, i + 1);
if (CGame.GetNumSongs() == 1 && CGame.GetSong(1).IsDuet)
if (CGame.GetNumSongs() == 1 && firstSong.IsDuet)
{
_SelectSlides[_SelectSlideDuetPlayer[i]].Clear();
_SelectSlides[_SelectSlideDuetPlayer[i]].Visible = i + 1 <= CGame.NumPlayer;