diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2020-12-16 13:52:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-16 13:52:18 +0100 |
commit | 98b8279df830255803d977f0f6617e0727579f98 (patch) | |
tree | 5cdfae149539f0e3e29866adf8f5ff45bd7ef697 /modules | |
parent | a7f59525c51841f8c0e77689e92c72b69c03cafc (diff) | |
parent | 7d07e20bdae217a63efc4ae01373291d6126ff8e (diff) |
Merge pull request #44419 from winterpixelgames/PR-dissasemlber-fix-num-2
fixes crash in disassembler for opcode OPCODE_ASSIGN_TYPED_NATIVE
Diffstat (limited to 'modules')
-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 += " = "; |