summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_compiler.cpp
diff options
context:
space:
mode:
authorAdam Scott <ascott.ca@gmail.com>2022-11-27 10:31:53 -0500
committerAdam Scott <ascott.ca@gmail.com>2022-11-27 15:50:19 -0500
commit4e6068969527ae4f55adf24865d511727d1da3b4 (patch)
treed22dac0407e28711cc3eccebf73490f68f1325a2 /modules/gdscript/gdscript_compiler.cpp
parent690199b7dddd784b435e6ce71365256b29285fe8 (diff)
downloadredot-engine-4e6068969527ae4f55adf24865d511727d1da3b4.tar.gz
Fix cyclic reference base being loaded but not valid (which is ok)
Diffstat (limited to 'modules/gdscript/gdscript_compiler.cpp')
-rw-r--r--modules/gdscript/gdscript_compiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_compiler.cpp b/modules/gdscript/gdscript_compiler.cpp
index f0ceb42f89..103eb60da9 100644
--- a/modules/gdscript/gdscript_compiler.cpp
+++ b/modules/gdscript/gdscript_compiler.cpp
@@ -2284,7 +2284,7 @@ Error GDScriptCompiler::_populate_class_members(GDScript *p_script, const GDScri
_set_error(vformat(R"(Could not find class "%s" in "%s".)", base->fully_qualified_name, base->path), nullptr);
return ERR_COMPILATION_FAILED;
}
- ERR_FAIL_COND_V(!base->is_valid(), ERR_BUG);
+ ERR_FAIL_COND_V(!base->is_valid() && !base->reloading, ERR_BUG);
}
p_script->base = base;