Browse Source

Fix logic in the previous commit

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.1-rc1
falkTX 6 years ago
parent
commit
011f8dcd17
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      source/backend/plugin/CarlaPluginVST2.cpp

+ 2
- 2
source/backend/plugin/CarlaPluginVST2.cpp View File

@@ -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;


Loading…
Cancel
Save