mirror of
https://github.com/godotengine/godot.git
synced 2025-02-17 22:43:01 +08:00
fixes crash for OPCODE_CAST_TO_NATIVE opcode in gdscript disassemlber
This commit is contained in:
parent
7e009a1671
commit
afa15c5f15
@ -360,15 +360,12 @@ void GDScriptFunction::disassemble(const Vector<String> &p_code_lines) const {
|
|||||||
incr += 4;
|
incr += 4;
|
||||||
} break;
|
} break;
|
||||||
case OPCODE_CAST_TO_NATIVE: {
|
case OPCODE_CAST_TO_NATIVE: {
|
||||||
Variant class_name = _constants_ptr[_code_ptr[ip + 1]];
|
|
||||||
GDScriptNativeClass *nc = Object::cast_to<GDScriptNativeClass>(class_name.operator Object *());
|
|
||||||
|
|
||||||
text += "cast native ";
|
text += "cast native ";
|
||||||
text += DADDR(2);
|
text += DADDR(2);
|
||||||
text += " = ";
|
text += " = ";
|
||||||
text += DADDR(1);
|
text += DADDR(1);
|
||||||
text += " as ";
|
text += " as ";
|
||||||
text += nc->get_name();
|
text += DADDR(3);
|
||||||
|
|
||||||
incr += 4;
|
incr += 4;
|
||||||
} break;
|
} break;
|
||||||
|
Loading…
Reference in New Issue
Block a user