diff --git a/subclass.cpp b/subclass.cpp index 28a4a1cf..67c58f7d 100644 --- a/subclass.cpp +++ b/subclass.cpp @@ -742,7 +742,7 @@ namespace { Ptr::null_ok); PyErr_Clear(); if (attribute.get() != 0 && PyCallable_Check(attribute.get())) - detail::add_capability(n, derived, all_methods); + detail::add_capability(enablers[n].capability, derived, all_methods); } }