Browse Source

fixes crash in disassemlber for opcode OPCODE_ASSIGN_TYPED_NATIVE

Jordan Schidlowsky 4 years ago
parent
commit
7d07e20bda
1 changed files with 1 additions and 4 deletions
  1. 1 4
      modules/gdscript/gdscript_disassembler.cpp

+ 1 - 4
modules/gdscript/gdscript_disassembler.cpp

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