talk.h make voice files check for proper number of entries on load

In addition to version and target also check id1_max & id2_max
for proper length before allowing voice file to be loaded

Change-Id: I36016059d07781b0bb43dd9873bbb6e565298d76
This commit is contained in:
William Wilgus 2019-10-14 21:42:19 -05:00
parent 4382d3f5ed
commit c93666d08e
3 changed files with 10 additions and 2 deletions

View file

@ -718,6 +718,7 @@ MOO
# Output end of lang_enum.h
print HFILE_CORE <<MOO
LANG_LAST_VOICEONLY_INDEX_IN_ARRAY /* this is not a string, this is a marker */
};
/* end of generated enum list */
#endif /* _LANG_ENUM_H_ */