From d898b54ea75f9a3cf6b4a9e109e0193bb1e94943 Mon Sep 17 00:00:00 2001 From: xenakios Date: Thu, 26 Apr 2018 23:20:16 +0300 Subject: [PATCH] Deserialize should now work --- Source/PluginProcessor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 9082775..a02dd87 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -274,7 +274,8 @@ void PaulstretchpluginAudioProcessor::setStateFromTree(ValueTree tree) { for (int i = 0; i < ordersize; ++i) { - new_order.push_back({ (int)tree.getProperty("specorderb" + String(i)), old_order[i].m_enabled }); + int index = tree.getProperty("specorderb" + String(i)); + new_order.push_back({ index, old_order[index].m_enabled }); } m_stretch_source->setSpectrumProcessOrder(new_order); }