Stupid mistake. Actually check if the track really has the default flag set.

This commit is contained in:
Moritz Bunkus 2005-02-19 18:27:28 +00:00
parent cbb245d66f
commit 059ee994a0

View File

@ -562,7 +562,7 @@ default_track_checked(char type) {
int i;
for (i = 0; i < tracks.size(); i++)
if (tracks[i]->type == type)
if ((tracks[i]->type == type) && tracks[i]->default_track)
return i;
return -1;
}