Change GDScriptFunction::temporary_slots to be a LocalVector

This commit is contained in:
Mikael Hermansson
2026-03-25 16:03:31 +01:00
parent 60fff00a66
commit acc2c961a1
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -189,7 +189,7 @@ GDScriptFunction *GDScriptByteCodeGenerator::write_end() {
opcodes.write[temporaries[i].bytecode_indices[j]] = stack_index | (GDScriptFunction::ADDR_TYPE_STACK << GDScriptFunction::ADDR_BITS);
}
if (temporaries[i].type != Variant::NIL) {
function->temporary_slots[stack_index] = temporaries[i].type;
function->temporary_slots.push_back(Pair(stack_index, temporaries[i].type));
}
}