aboutsummaryrefslogtreecommitdiff
path: root/externals
diff options
context:
space:
mode:
Diffstat (limited to 'externals')
-rw-r--r--externals/grill/py/source/pyext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/externals/grill/py/source/pyext.cpp b/externals/grill/py/source/pyext.cpp
index b3cafb8a..d7449200 100644
--- a/externals/grill/py/source/pyext.cpp
+++ b/externals/grill/py/source/pyext.cpp
@@ -262,6 +262,7 @@ bool pyext::DoInit()
}
Py_DECREF(init);
}
+ else
// __init__ has not been found - don't care
PyErr_Clear();
@@ -402,7 +403,7 @@ void pyext::Load()
int inl = -1,outl = -1;
ok = InitInOut(inl,outl);
- if(inl != inlets || outl != outlets)
+ if((inl >= 0 && inl != inlets) || (outl >= 0 && outl != outlets))
post("%s - Inlet and outlet count can't be changed by reload",thisName());
}