music editor crash fix
@@ -958,9 +958,12 @@ static void processTrackerKeyboard(Music* music)
else if(keyWasPressed(tic_key_space))
{
const tic_track_pattern* pattern = getChannelPattern(music);
+ if(pattern)
+ {
const tic_track_row* row = &pattern->rows[music->tracker.edit.y];
playNote(music, row);
}
+ }
if(shift)
{
