From 059ee994a0930b3720f7d9c4252560cb102493d3 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 19 Feb 2005 18:27:28 +0000 Subject: [PATCH] Stupid mistake. Actually check if the track really has the default flag set. --- src/mmg/mmg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mmg/mmg.cpp b/src/mmg/mmg.cpp index 7b7ce4b8c..55659eeab 100644 --- a/src/mmg/mmg.cpp +++ b/src/mmg/mmg.cpp @@ -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; }