Skip to content

Commit

Permalink
fix: crash when new staff system with only new voices
Browse files Browse the repository at this point in the history
Issue #70
  • Loading branch information
moinejf committed Feb 4, 2020
1 parent 4a1f755 commit ddb3e0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion music.c
Original file line number Diff line number Diff line change
Expand Up @@ -3169,7 +3169,8 @@ static struct SYMBOL *sym_new(int type,

s->ts_next = last_s;
s->ts_prev = last_s->ts_prev;
s->ts_prev->ts_next = s;
if (s->ts_prev)
s->ts_prev->ts_next = s;
if (!s->ts_prev || s->ts_prev->type != type)
s->sflags |= S_SEQST;
last_s->ts_prev = s;
Expand Down

0 comments on commit ddb3e0e

Please sign in to comment.