fixed lockup and renamed constant

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@449 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2006-12-28 19:08:19 +00:00
parent 85bc1d5452
commit f68d4e4b62
12 changed files with 52 additions and 29 deletions

View File

@@ -364,7 +364,7 @@ bool flpImport::tryImport( trackContainer * _tc )
printf( "new channel\n" );
it = dynamic_cast<instrumentTrack *>(
track::create( track::CHANNEL_TRACK, _tc->eng()->getBBEditor() ) );
track::create( track::INSTRUMENT_TRACK, _tc->eng()->getBBEditor() ) );
assert( it != NULL );
i_tracks.push_back( it );
it_inst = it->loadInstrument(

View File

@@ -219,7 +219,7 @@ invalid_format:
// now create new channel-track for reading track
instrumentTrack * ct = dynamic_cast<instrumentTrack *>(
track::create(
track::CHANNEL_TRACK,
track::INSTRUMENT_TRACK,
_tc ) );
#ifdef LMMS_DEBUG
assert( ct != NULL );