From 7d07e20bdae217a63efc4ae01373291d6126ff8e Mon Sep 17 00:00:00 2001 From: Jordan Schidlowsky Date: Tue, 15 Dec 2020 21:44:52 -0600 Subject: fixes crash in disassemlber for opcode OPCODE_ASSIGN_TYPED_NATIVE --- modules/gdscript/gdscript_disassembler.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/gdscript/gdscript_disassembler.cpp b/modules/gdscript/gdscript_disassembler.cpp index acd7eef6ac..5938cfd7b2 100644 --- a/modules/gdscript/gdscript_disassembler.cpp +++ b/modules/gdscript/gdscript_disassembler.cpp @@ -323,11 +323,8 @@ void GDScriptFunction::disassemble(const Vector &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(class_name.operator Object *()); - text += "assign typed native ("; - text += nc->get_name().operator String(); + text += DADDR(3); text += ") "; text += DADDR(1); text += " = "; -- cgit v1.2.3