Fix problem of spaces between P and number in duet-files.

This commit is contained in:
Florian Kuepper committed 2012-07-03 11:16:43 +02:00
1 parent b82b30aea4
commit daf1848e45
1 file changed
+3 -2
+3 -2
View File
@@ -420,9 +420,10 @@ namespace Vocaluxe.Lib.Song
FileLineNo++;
if (TempC.CompareTo('P') == 0)
{
char chr = (char)sr.Read();
int.TryParse(chr.ToString(), out Param1);
char chr;
while ((chr = (char)sr.Read()) == ' '){ }
int.TryParse(chr.ToString(), out Param1);
if (Param1 == 1)
Player = 0;
else if (Param1 == 2)