浏览代码

Merge pull request #93294 from rune-scape/autoload-incorrect-path

Fix incorrect autoload path in error
Rémi Verschelde 1 年之前
父节点
当前提交
b435551682
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      editor/editor_autoload_settings.cpp

+ 2 - 2
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;
 	}