fixes crash in disassemlber for opcode OPCODE_ASSIGN_TYPED_NATIVE
This commit is contained in:
parent
92d4deedaa
commit
7d07e20bda
@ -323,11 +323,8 @@ void GDScriptFunction::disassemble(const Vector<String> &p_code_lines) const {
|
||||
incr += 4;
|
||||
} break;
|
||||
case OPCODE_ASSIGN_TYPED_NATIVE: {
|
||||
Variant class_name = _constants_ptr[_code_ptr[ip + 3]];
|
||||
GDScriptNativeClass *nc = Object::cast_to<GDScriptNativeClass>(class_name.operator Object *());
|
||||
|
||||
text += "assign typed native (";
|
||||
text += nc->get_name().operator String();
|
||||
text += DADDR(3);
|
||||
text += ") ";
|
||||
text += DADDR(1);
|
||||
text += " = ";
|
||||
|
Loading…
Reference in New Issue
Block a user