From e120792760795a834e86c05b73804573d956a77b Mon Sep 17 00:00:00 2001 From: Mikael Hermansson Date: Wed, 11 Sep 2024 14:08:04 +0200 Subject: [PATCH] Fix issue with GDScript binary tokens being non-deterministic --- modules/gdscript/gdscript_tokenizer_buffer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gdscript/gdscript_tokenizer_buffer.cpp b/modules/gdscript/gdscript_tokenizer_buffer.cpp index e53bc5bc41a..2046480f0eb 100644 --- a/modules/gdscript/gdscript_tokenizer_buffer.cpp +++ b/modules/gdscript/gdscript_tokenizer_buffer.cpp @@ -296,6 +296,7 @@ Vector GDScriptTokenizerBuffer::parse_code_string(const String &p_code, encode_uint32(identifier_map.size(), &contents.write[0]); encode_uint32(constant_map.size(), &contents.write[4]); encode_uint32(token_lines.size(), &contents.write[8]); + encode_uint32(0, &contents.write[12]); // Unused, kept for compatibility. Please remove at next `TOKENIZER_VERSION` increment. encode_uint32(token_counter, &contents.write[16]); int buf_pos = 20;