diff --git a/src/vtable.ts b/src/vtable.ts index f56bd20..5a93f70 100644 --- a/src/vtable.ts +++ b/src/vtable.ts @@ -158,7 +158,7 @@ export class VTable implements Property { init += `${INDENT}${info.getName()}_vtable_addr = (${type}) ${toHex(vtableAddress)};\n`; declarations += `${type}${info.getName()}_vtable_addr;\n`; init += `${INDENT}${info.getName()}_non_virtual = *${info.getName()}_vtable_addr;\n`; - declarations += info.generateDefinition(); + declarations += info.generateDefinition('_non_virtual'); } } }