Skip to content

Commit

Permalink
Fixed single player vocal crash on loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdpeople committed Mar 11, 2012
1 parent 6b9aa1c commit db10fe5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Song.py
Expand Up @@ -2725,8 +2725,14 @@ def addVocalLyric(self, text):

if not self.useVocalTrack:
return True

track = [i for i,j in enumerate(self.song.parts) if self.partnumber == j][0]

if self.partnumber == None:
return False

for i, j in enumerate(self.song.parts):
if self.partnumber == j:
track = i

self.song.track[track].allWords[time] = text

def addVocalStar(self, time):
Expand Down

0 comments on commit db10fe5

Please sign in to comment.