phoneme: pass the feature enum value to phoneme_add_feature.

This commit is contained in:
Reece H. Dunn
2017-01-26 19:58:23 +00:00
parent 926303c095
commit b3a1bcda4b
5 changed files with 15 additions and 44 deletions
+3 -1
View File
@@ -2016,7 +2016,9 @@ int CompilePhoneme(int compile_phoneme)
error("Missing 'endphoneme' before end-of-file"); // end of file
break;
}
if (phoneme_add_feature(phoneme_out, item_string, NULL) == ENS_OK)
phoneme_feature_t feature = phoneme_feature_from_string(item_string);
if (phoneme_add_feature(phoneme_out, feature) == ENS_OK)
continue;
error("Bad keyword in phoneme definition '%s'", item_string);
continue;