Skip to content

Commit

Permalink
committing patch from >>>/scdev/1408 to fix (another) ubuntu crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Storlek committed Nov 8, 2011
1 parent 24360eb commit 1235298
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion player/effects.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,8 @@ void csf_process_midi_macro(song_t *csf, uint32_t nchan, const char * macro, uin
{
/* this was all wrong. -mrsb */
song_voice_t *chan = &csf->voices[nchan];
song_instrument_t *penv = (csf->flags & SONG_INSTRUMENTMODE)
song_instrument_t *penv = ((csf->flags & SONG_INSTRUMENTMODE)
&& chan->last_instrument < MAX_INSTRUMENTS)
? csf->instruments[use_instr ?: chan->last_instrument]
: NULL;
unsigned char outbuffer[64];
Expand Down

0 comments on commit 1235298

Please sign in to comment.