Bugfix in OP_SUPER, fix method id of super
@@ -921,13 +921,14 @@ static inline int op_super( mrbc_vm *vm, mrbc_value *regs )
mrbc_callinfo *callinfo = vm->callinfo_tail;
- int id = callinfo->inst[-3];
- const char *sym_name = mrbc_get_irep_symbol(callinfo->pc_irep->ptr_to_sym, id);
+ int id = callinfo->mid;
+ const char *sym_name = symid_to_str(id);
mrbc_dup( &regs[0] );
mrbc_release( &regs[a] );
regs[a] = regs[0];
+ // fing super class
regs[a].instance->cls = regs[a].instance->cls->super;
if( b == 127 ){
