summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_byte_codegen.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-12-10 10:21:19 +0100
committerGitHub <noreply@github.com>2022-12-10 10:21:19 +0100
commitf6ea295bb10da4bad623433c74086072fb0e2a6a (patch)
tree5a72d27fc186b99b19280cb6f421e7031c84c639 /modules/gdscript/gdscript_byte_codegen.cpp
parentae86d907e75c3de9b039e7cc77e521bc9739e6dc (diff)
parentd531869a7c3c73d79c6ead71c7736f285bf6e1a1 (diff)
downloadredot-engine-f6ea295bb10da4bad623433c74086072fb0e2a6a.tar.gz
Merge pull request #69467 from rune-scape/rune-subclass-script-path
GDScript: Fix subclass script path issues
Diffstat (limited to 'modules/gdscript/gdscript_byte_codegen.cpp')
-rw-r--r--modules/gdscript/gdscript_byte_codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_byte_codegen.cpp b/modules/gdscript/gdscript_byte_codegen.cpp
index fa158591fd..1bc83fbbb5 100644
--- a/modules/gdscript/gdscript_byte_codegen.cpp
+++ b/modules/gdscript/gdscript_byte_codegen.cpp
@@ -164,7 +164,7 @@ void GDScriptByteCodeGenerator::write_start(GDScript *p_script, const StringName
function->name = p_function_name;
function->_script = p_script;
- function->source = p_script->get_path();
+ function->source = p_script->get_script_path();
#ifdef DEBUG_ENABLED
function->func_cname = (String(function->source) + " - " + String(p_function_name)).utf8();