summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-06-18 14:09:07 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-06-18 14:09:07 +0200
commitb435551682f93cf49f606d260b28e13ff5526beb (patch)
treed84be3ded29bf95cbc08df84cfffb06ead7f4f32
parent470cc597066d2cfdcc1394ae7cc79729267985a8 (diff)
parent97105f236dbceb46eb803959880d590303625f7f (diff)
downloadredot-engine-b435551682f93cf49f606d260b28e13ff5526beb.tar.gz
Merge pull request #93294 from rune-scape/autoload-incorrect-path
Fix incorrect autoload path in error
-rw-r--r--editor/editor_autoload_settings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_autoload_settings.cpp b/editor/editor_autoload_settings.cpp
index a5c4831db7..13f2fd047c 100644
--- a/editor/editor_autoload_settings.cpp
+++ b/editor/editor_autoload_settings.cpp
@@ -753,12 +753,12 @@ bool EditorAutoloadSettings::autoload_add(const String &p_name, const String &p_
}
if (!FileAccess::exists(p_path)) {
- EditorNode::get_singleton()->show_warning(TTR("Can't add Autoload:") + "\n" + vformat(TTR("%s is an invalid path. File does not exist."), path));
+ EditorNode::get_singleton()->show_warning(TTR("Can't add Autoload:") + "\n" + vformat(TTR("%s is an invalid path. File does not exist."), p_path));
return false;
}
if (!p_path.begins_with("res://")) {
- EditorNode::get_singleton()->show_warning(TTR("Can't add Autoload:") + "\n" + vformat(TTR("%s is an invalid path. Not in resource path (res://)."), path));
+ EditorNode::get_singleton()->show_warning(TTR("Can't add Autoload:") + "\n" + vformat(TTR("%s is an invalid path. Not in resource path (res://)."), p_path));
return false;
}