fixed crash

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@431 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2006-12-05 10:30:41 +00:00
parent 6b3f216a82
commit 0844811f7d
2 changed files with 6 additions and 1 deletions

View File

@@ -919,7 +919,7 @@ bool FASTCALL instrumentTrack::play( const midiTime & _start,
trackContentObject * tco = getTCO( _tco_num );
tcos.push_back( tco );
bb_track = bbTrack::findBBTrack( _tco_num, eng() );
if( !( bb_track->automationDisabled( this )
if( bb_track != NULL && !( bb_track->automationDisabled( this )
|| dynamic_cast<pattern *>( tco )->empty() ) )
{
sendMidiTime( _start );