Merge pull request #1028 from paulfd/reload-bug
Don't check unspecified CC conditions
This commit is contained in:
commit
5fdbb7642f
1 changed files with 6 additions and 1 deletions
|
|
@ -147,7 +147,12 @@ void Layer::updateCCState(int ccNumber, float ccValue) noexcept
|
|||
sostenutoPressed_ = newState;
|
||||
}
|
||||
|
||||
if (region.ccConditions.getWithDefault(ccNumber).containsWithEnd(ccValue))
|
||||
const auto conditions = region.ccConditions.get(ccNumber);
|
||||
|
||||
if (!conditions)
|
||||
return;
|
||||
|
||||
if (conditions->containsWithEnd(ccValue))
|
||||
ccSwitched_.set(ccNumber, true);
|
||||
else
|
||||
ccSwitched_.set(ccNumber, false);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue