Skip to content

Commit

Permalink
🐛 Fix member dynamicity
Browse files Browse the repository at this point in the history
  • Loading branch information
fennecdjay committed Feb 23, 2019
1 parent 1d6d8f4 commit ce5f9fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/emit/emit.c
Expand Up @@ -747,6 +747,11 @@ ANN m_bool emit_exp_call1(const Emitter emit, const Func f) { GWDEBUG_EXE
} else if((f->value_ref->owner_class && is_special(f->value_ref->owner_class) > 0) ||
!f->value_ref->owner_class || GET_FLAG(f, template))
push_func_code(emit, f);
else {
const Instr back = (Instr)vector_back(&emit->code->instr);
if((f_instr)back->opcode == DotFunc)
back->m_val = f->vt_index;
}
const Instr offset = emit_add_instr(emit, RegSetImm);
offset->m_val = emit_code_offset(emit);
const Instr instr = emit_call(emit, f);
Expand Down

0 comments on commit ce5f9fb

Please sign in to comment.