diff --git a/aegisub/src/ass_karaoke.cpp b/aegisub/src/ass_karaoke.cpp index 88c661f85..e5cf8bb44 100644 --- a/aegisub/src/ass_karaoke.cpp +++ b/aegisub/src/ass_karaoke.cpp @@ -57,8 +57,6 @@ AssKaraoke::AssKaraoke(AssDialogue *line, bool auto_split, bool normalize) } void AssKaraoke::SetLine(AssDialogue *line, bool auto_split, bool normalize) { - active_line = line; - syls.clear(); Syllable syl; syl.start_time = line->Start; @@ -69,7 +67,7 @@ void AssKaraoke::SetLine(AssDialogue *line, bool auto_split, bool normalize) { if (normalize) { // Normalize the syllables so that the total duration is equal to the line length - int end_time = active_line->End; + int end_time = line->End; int last_end = syl.start_time + syl.duration; // Total duration is shorter than the line length so just extend the last diff --git a/aegisub/src/ass_karaoke.h b/aegisub/src/ass_karaoke.h index 95275053b..daf537c85 100644 --- a/aegisub/src/ass_karaoke.h +++ b/aegisub/src/ass_karaoke.h @@ -49,7 +49,6 @@ public: }; private: std::vector syls; - AssDialogue *active_line; bool no_announce;