summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-06-18 17:59:03 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-06-18 17:59:03 +0200
commit6c3f811f084cde0948089bab8280ad25404f8834 (patch)
treeab18b3264a10f0b970ec112882a9471560771be3 /modules/gdscript/gdscript.cpp
parentb435551682f93cf49f606d260b28e13ff5526beb (diff)
parenteca19d6e804bb17b31195931042686c6eb0862de (diff)
downloadredot-engine-6c3f811f084cde0948089bab8280ad25404f8834.tar.gz
Merge pull request #92177 from KoBeWi/literally_wtf
Fix broken built-in script reloading
Diffstat (limited to 'modules/gdscript/gdscript.cpp')
-rw-r--r--modules/gdscript/gdscript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp
index 838ab42beb..20d424894a 100644
--- a/modules/gdscript/gdscript.cpp
+++ b/modules/gdscript/gdscript.cpp
@@ -995,7 +995,7 @@ bool GDScript::_get(const StringName &p_name, Variant &r_ret) const {
bool GDScript::_set(const StringName &p_name, const Variant &p_value) {
if (p_name == GDScriptLanguage::get_singleton()->strings._script_source) {
set_source_code(p_value);
- reload();
+ reload(true);
return true;
}