mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-10 00:11:11 +00:00
fixup case V_TUNES
previous changing of variable names caused an error in the program logic.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user