Fixed karaoke mode + vector drawings crash

Originally committed to SVN as r1060.
This commit is contained in:
Niels Martin Hansen 2007-04-12 15:02:05 +00:00
parent f173204498
commit 943c8c2564
1 changed files with 2 additions and 4 deletions

View File

@ -231,8 +231,7 @@ bool AudioKaraoke::ParseDialogue(AssDialogue *curDiag) {
// Load syllable data // Load syllable data
for (size_t i=0;i<n;i++) { for (size_t i=0;i<n;i++) {
block = curDiag->Blocks.at(i); block = curDiag->Blocks.at(i);
override = AssDialogueBlock::GetAsOverride(block); if (override = AssDialogueBlock::GetAsOverride(block)) {
if (override) {
AssOverrideTag *len = GetKaraokeLength(override); AssOverrideTag *len = GetKaraokeLength(override);
if (len) { if (len) {
if (foundOne) syllables.push_back(temp); if (foundOne) syllables.push_back(temp);
@ -246,8 +245,7 @@ bool AudioKaraoke::ParseDialogue(AssDialogue *curDiag) {
temp.original_tagdata = len->Params.at(0); temp.original_tagdata = len->Params.at(0);
} }
} }
else { else if (plain = AssDialogueBlock::GetAsPlain(block)) {
plain = AssDialogueBlock::GetAsPlain(block);
temp.contents += plain->text; temp.contents += plain->text;
if (plain->text != _T("")) foundOne = true; if (plain->text != _T("")) foundOne = true;
} }