diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-04-04 23:56:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-04 23:56:20 +0200 |
commit | db8e6bd83fa09518cc4b6b2feb4dad0aa7657eea (patch) | |
tree | b4de48b8c9cbffd3b57370d5547e0cbfae3d4456 /editor | |
parent | a28314b036146c645ce4d6cc64b41b2ff3a74028 (diff) | |
parent | 1cc7e7ec33a652647d63cb32fa164eceef87c653 (diff) |
Merge pull request #59885 from Jayman2000/autoload-inheritance-message
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_autoload_settings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_autoload_settings.cpp b/editor/editor_autoload_settings.cpp index b37b06748d..49bf24f864 100644 --- a/editor/editor_autoload_settings.cpp +++ b/editor/editor_autoload_settings.cpp @@ -406,7 +406,7 @@ Node *EditorAutoloadSettings::_create_autoload(const String &p_path) { } else if (script.is_valid()) { StringName ibt = script->get_instance_base_type(); bool valid_type = ClassDB::is_parent_class(ibt, "Node"); - ERR_FAIL_COND_V_MSG(!valid_type, nullptr, "Script does not inherit a Node: " + p_path + "."); + ERR_FAIL_COND_V_MSG(!valid_type, nullptr, "Script does not inherit from Node: " + p_path + "."); Object *obj = ClassDB::instantiate(ibt); |