Skip to content

Commit a8b4233

Browse files
committed
Code improvement.
1 parent 4d731bb commit a8b4233

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/de/mossgrabers/convertwithmoss/format/sfz/SfzDetectorTask.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,8 @@ private void readMissingValues (final ISampleZone zone)
714714
{
715715
oldLoop = loops.get (0);
716716
readLoops = oldLoop.getStart () < 0 || oldLoop.getEnd () < 0;
717-
loops.clear ();
717+
if (readLoops)
718+
loops.clear ();
718719
}
719720

720721
zone.getSampleData ().addZoneData (zone, true, readLoops);

0 commit comments

Comments
 (0)