mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Fix cyclic reference base being loaded but not valid (which is ok)
This commit is contained in:
parent
690199b7dd
commit
4e60689695
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue