summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_parser.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-07-09 16:47:32 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-07-09 16:47:32 +0200
commit26d1577f3985363faab48a65e9a0d9eed0e26d86 (patch)
tree41f7f1b1d49722401f7cb97182791f863966afa4 /modules/gdscript/gdscript_parser.cpp
parent5514510f7fb6dc3bcb386f40670eecdbfed1cc1b (diff)
parent110c4d40674fd338759f0e7655ac940b1c028809 (diff)
downloadredot-engine-26d1577f3985363faab48a65e9a0d9eed0e26d86.tar.gz
Merge pull request #94131 from dalexeev/gds-fix-mismatched-parser-autoloads
GDScript: Fix "Mismatched external parser" for autoloads
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r--modules/gdscript/gdscript_parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp
index a1ea94667d..433f767f1e 100644
--- a/modules/gdscript/gdscript_parser.cpp
+++ b/modules/gdscript/gdscript_parser.cpp
@@ -413,7 +413,7 @@ Error GDScriptParser::parse_binary(const Vector<uint8_t> &p_binary, const String
}
tokenizer = buffer_tokenizer;
- script_path = p_script_path;
+ script_path = p_script_path.simplify_path();
current = tokenizer->scan();
// Avoid error or newline as the first token.
// The latter can mess with the parser when opening files filled exclusively with comments and newlines.