Skip to content

Commit 7d2e94c

Browse files
committed
Fix saving of chord simulator parameter
1 parent 90598f8 commit 7d2e94c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/deluge/modulation/arpeggiator.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,9 +1446,9 @@ bool ArpeggiatorSettings::readCommonTagsFromFile(Deserializer& reader, char cons
14461446
updatePresetFromCurrentSettings();
14471447
}
14481448
else if (!strcmp(tagName, "chordType")) {
1449-
uint8_t chordTypeIndex = (uint8_t)reader.readTagOrAttributeValueInt();
1450-
if (chordTypeIndex >= 0 && chordTypeIndex < MAX_CHORD_TYPES) {
1451-
chordTypeIndex = chordTypeIndex;
1449+
uint8_t value = (uint8_t)reader.readTagOrAttributeValueInt();
1450+
if (value >= 0 && value < MAX_CHORD_TYPES) {
1451+
chordTypeIndex = value;
14521452
}
14531453
}
14541454
else if (!strcmp(tagName, "noteMode")) {

0 commit comments

Comments
 (0)