Skip to content

Commit

Permalink
Fixed crash on loading an organ with a crescendo in Add mode GrandOrg…
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg68 committed Jan 14, 2024
1 parent ca45a49 commit 6886512
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- Fixed crash on loading an organ with a crescendo in Add mode https://github.com/GrandOrgue/grandorgue/issues/1772
# 3.13.3 (2024-01-07)
- Fixed not loading a pipe if some loop was not suitable for crossfade https://github.com/GrandOrgue/grandorgue/issues/1724
- Fixed a wrong .wav filename in the log message window https://github.com/GrandOrgue/grandorgue/issues/1724
Expand Down
2 changes: 2 additions & 0 deletions src/grandorgue/combinations/model/GOCombination.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ void GOCombination::SetStatesFromYaml(
void GOCombination::GetExtraSetState(
GOCombination::ExtraElementsSet &extraSet) {
extraSet.clear();
// May be called from init a crescendo before init combinations
UpdateState();
for (unsigned i = 0; i < r_ElementDefinitions.size(); i++) {
if (
m_State[i] == 0 && r_ElementDefinitions[i].control->GetCombinationState())
Expand Down

0 comments on commit 6886512

Please sign in to comment.