fix typo preventing methods from being discovered on scriptable objects when we're ignoring superclasses

This commit is contained in:
Heather Anderson 2022-03-20 22:15:32 -07:00 committed by ksuprynowicz
parent a822110a62
commit 67260b92bd

View file

@ -158,7 +158,7 @@ void ScriptObjectQtProxy::investigate() {
}
// discover methods
startIdx = _wrapOptions & ScriptEngine::ExcludeSuperClassMethods ? metaObject->methodCount() : 0;
startIdx = (_wrapOptions & ScriptEngine::ExcludeSuperClassMethods) ? metaObject->methodOffset() : 0;
num = metaObject->methodCount();
QHash<QScriptString, int> methodNames;
for (int idx = startIdx; idx < num; ++idx) {