diff options
author | Jordan Schidlowsky <jordan@winterpixel.com> | 2020-12-15 21:44:52 -0600 |
---|---|---|
committer | Jordan Schidlowsky <jordan@winterpixel.com> | 2020-12-15 21:44:52 -0600 |
commit | 7d07e20bdae217a63efc4ae01373291d6126ff8e (patch) | |
tree | 6ee5ebc5dd883346d22062f6d14e4b1eb0c40adf /modules/gdscript | |
parent | 92d4deedaa542e9458845fdf2b2a44fedd19fde8 (diff) |
fixes crash in disassemlber for opcode OPCODE_ASSIGN_TYPED_NATIVE
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gdscript_disassembler.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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<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 += " = "; |