diff --git a/lib/WDL b/lib/WDL index 805967d..46db2f1 160000 --- a/lib/WDL +++ b/lib/WDL @@ -1 +1 @@ -Subproject commit 805967d09d659aa1504bd8551a4c52c4c98ef65c +Subproject commit 46db2f1b0791bfe392bab7c8d53796e0f19e4cf9 diff --git a/src/reallm.cpp b/src/reallm.cpp index 41537c9..79a8309 100644 --- a/src/reallm.cpp +++ b/src/reallm.cpp @@ -667,8 +667,9 @@ void main() GetProjExtState(0, "ak5k", "reallm_sz", buf, BUFSIZ); auto state_size = buf[0] != '\0' ? std::stoi(buf) : 0; static std::string state; - if (state_size > (int)state.size()) - state.resize(state_size); + state.clear(); + state.resize(state_size); + GetProjExtState(0, "ak5k", "reallm", &state[0], state_size); fx_set_prev.clear(); fx_set_prev = deserializeFxSet(state); @@ -753,7 +754,8 @@ void main() automation_temp_override = GetGlobalAutomationOverride(); SetGlobalAutomationOverride(6); } - (*it)->enable(); + if (!(*it)->getSafe()) + (*it)->enable(); } if (!(*it)->getSafe()) it = fx_set_prev.erase(it);