Browse Source

fixup case V_TUNES

previous changing of variable names caused an error in the program logic.
master
Juho Hiltunen 2 years ago
parent
commit
644f02c26a
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      src/libespeak-ng/langopts.c

+ 4
- 2
src/libespeak-ng/langopts.c View File

@@ -147,14 +147,16 @@ if (CheckTranslator(translator, langopts_tab, key) != 0) {
n = sscanf(keyValue, "%s %s %s %s %s %s", names[0], names[1], names[2], names[3], names[4], names[5]);
translator->langopts.intonation_group = 0;

int value;
for (ix = 0; ix < n; ix++) {
if (strcmp(names[ix], "NULL") == 0)
continue;

if ((n = LookupTune(names[ix])) < 0)

if ((value = LookupTune(names[ix])) < 0)
fprintf(stderr, "Unknown tune '%s'\n", names[ix]);
else
translator->langopts.tunes[ix] = n;
translator->langopts.tunes[ix] = value;
}
break;
}

Loading…
Cancel
Save