Skip to content

Commit

Permalink
fix instrument loading
Browse files Browse the repository at this point in the history
after an SL or WL block it wouldn't load anything else
  • Loading branch information
tildearrow committed Oct 14, 2023
1 parent 972dc85 commit f1afa42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/engine/instrument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,7 @@ void DivInstrument::putInsData2(SafeWriter* w, bool fui, const DivSong* song, bo
case DIV_INS_NES:
featureSM=true;
featureNE=true;
featureSL=true;
break;
case DIV_INS_MSM6258:
featureSM=true;
Expand Down Expand Up @@ -2438,7 +2439,7 @@ void DivInstrument::readFeatureSL(SafeReader& reader, DivSong* song, short versi
}
}

reader.seek(lastSeek,SEEK_CUR);
reader.seek(lastSeek,SEEK_SET);

// re-map samples
if (amiga.initSample>=0 && amiga.initSample<256) {
Expand Down Expand Up @@ -2497,7 +2498,7 @@ void DivInstrument::readFeatureWL(SafeReader& reader, DivSong* song, short versi
}
}

reader.seek(lastSeek,SEEK_CUR);
reader.seek(lastSeek,SEEK_SET);

// re-map wavetables
if (ws.enabled) {
Expand Down

0 comments on commit f1afa42

Please sign in to comment.