compiledata: Generate an error if the imported phoneme cannot be found.

This commit is contained in:
Reece H. Dunn
2017-01-28 12:51:16 +00:00
parent b4297c2851
commit a9030650ba
+3 -1
View File
@@ -1902,8 +1902,10 @@ static void ImportPhoneme(void)
NextItem(tSTRING);
if ((ph = FindPhoneme(item_string)) == NULL)
if ((ph = FindPhoneme(item_string)) == NULL) {
error("Cannot find phoneme '%s' to import.", item_string);
return;
}
ph_mnem = phoneme_out->mnemonic;
ph_code = phoneme_out->code;