From 011f8dcd1718a35c113b81266e22ca08da4e269c Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 30 Sep 2019 12:01:26 +0100 Subject: [PATCH] Fix logic in the previous commit Signed-off-by: falkTX --- source/backend/plugin/CarlaPluginVST2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/backend/plugin/CarlaPluginVST2.cpp b/source/backend/plugin/CarlaPluginVST2.cpp index 41bb2ef3a..96fc9e7d3 100644 --- a/source/backend/plugin/CarlaPluginVST2.cpp +++ b/source/backend/plugin/CarlaPluginVST2.cpp @@ -2396,7 +2396,7 @@ public: const bool isShell = (dispatcher(effGetPlugCategory) == kPlugCategShell); - if (sCurrentUniqueId == 0 && isShell) + if (uniqueId == 0 && isShell) { char strBuf[STR_MAX+1]; carla_zeroChars(strBuf, STR_MAX+1); @@ -2423,7 +2423,7 @@ public: dispatcher(effOpen); } - if (sCurrentUniqueId == 0 && !isShell) + if (fEffect->uniqueID == 0 && !isShell) { dispatcher(effClose); fEffect = nullptr;