diff --git a/direct/src/ffi/FFITypes.py b/direct/src/ffi/FFITypes.py index c70e671e13..50043cbe21 100644 --- a/direct/src/ffi/FFITypes.py +++ b/direct/src/ffi/FFITypes.py @@ -785,7 +785,7 @@ class ClassTypeDescriptor(BaseTypeDescriptor): indent(file, nesting+2, 'if ((len(_args) == 1) and (_args[0] == None)):\n') indent(file, nesting+3, 'return\n') indent(file, nesting+2, '# Otherwise, call the C constructor\n') - indent(file, nesting+2, 'apply(self.constructor, _args)\n') + indent(file, nesting+2, 'self.constructor(*_args)\n') indent(file, nesting+2, '\n')