GDScript: Fix uninitialized local variables not being reset

This commit is contained in:
Danil Alexeev 2024-03-28 21:57:56 +03:00
parent 86415f0245
commit 27d7760f41
No known key found for this signature in database
GPG key ID: 124453E157DA8DC7
10 changed files with 190 additions and 73 deletions

View file

@ -360,6 +360,13 @@ void GDScriptFunction::disassemble(const Vector<String> &p_code_lines) const {
incr += 3;
} break;
case OPCODE_ASSIGN_NULL: {
text += "assign ";
text += DADDR(1);
text += " = null";
incr += 2;
} break;
case OPCODE_ASSIGN_TRUE: {
text += "assign ";
text += DADDR(1);