Update DUMB to revision 667b479457fd7c1e9aff4ea8301295c81762bdf5

- Fixed IT envelope reading for node counts over 25, which are invalid



SVN r4088 (trunk)
This commit is contained in:
Randy Heit 2013-02-08 00:37:17 +00:00
parent 4ce4a05518
commit 86690be58b

View file

@ -306,6 +306,8 @@ static int it_read_envelope(IT_ENVELOPE *envelope, DUMBFILE *f)
envelope->loop_end = dumbfile_getc(f);
envelope->sus_loop_start = dumbfile_getc(f);
envelope->sus_loop_end = dumbfile_getc(f);
if (envelope->n_nodes > 25)
envelope->n_nodes = 25;
for (n = 0; n < envelope->n_nodes; n++) {
envelope->node_y[n] = dumbfile_getc(f);
envelope->node_t[n] = dumbfile_igetw(f);