1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

fixes crash in disassemlber for opcode OPCODE_ASSIGN_TYPED_NATIVE

This commit is contained in:
Jordan Schidlowsky
2020-12-15 21:44:52 -06:00
parent 92d4deedaa
commit 7d07e20bda

View File

@@ -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 += " = ";