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 committed 2013-12-22 02:14:11 +01:00
1 parent abad5fca23
commit 25cccfdeaf
1 file changed
+2 -2
+2 -2
View File
@@ -598,7 +598,7 @@ namespace Vocaluxe.Screens
_CheckMics(); _CheckMics();
_CheckPlayers(); _CheckPlayers();
CSong firstSong = CGame.GetSong(0); CSong firstSong = CGame.GetSong(1);
for (int i = 0; i < CSettings.MaxNumPlayer; i++) for (int i = 0; i < CSettings.MaxNumPlayer; i++)
{ {
@@ -606,7 +606,7 @@ namespace Vocaluxe.Screens
CProfiles.GetAvatarTextureFromProfile(CGame.Players[i].ProfileID) : CProfiles.GetAvatarTextureFromProfile(CGame.Players[i].ProfileID) :
_OriginalPlayerAvatarTextures[i]; _OriginalPlayerAvatarTextures[i];
_Texts[_TextPlayer[i]].Text = CProfiles.GetPlayerName(CGame.Players[i].ProfileID, i + 1); _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]].Clear();
_SelectSlides[_SelectSlideDuetPlayer[i]].Visible = i + 1 <= CGame.NumPlayer; _SelectSlides[_SelectSlideDuetPlayer[i]].Visible = i + 1 <= CGame.NumPlayer;