summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-30 12:34:38 +0200
committerGitHub <noreply@github.com>2022-07-30 12:34:38 +0200
commit5595f2406a743a5a8f85d7e5642efa3c5ca18702 (patch)
tree0a18b0736b220aef412f4a042a2bfc2cb9ebc6f8 /core
parentb2429aab1f998ee3d64a2c30035a6c5ac2b37d48 (diff)
parent279e5e90f29a3faa03209df83c82e5c2071ed119 (diff)
Merge pull request #63670 from Rindbee/fix-wrong-in-ResourceSaver-save
Diffstat (limited to 'core')
-rw-r--r--core/io/resource_saver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/resource_saver.cpp b/core/io/resource_saver.cpp
index 41e2f0e116..274316f058 100644
--- a/core/io/resource_saver.cpp
+++ b/core/io/resource_saver.cpp
@@ -80,7 +80,7 @@ Error ResourceSaver::save(const Ref<Resource> &p_resource, const String &p_path,
if (path.is_empty()) {
path = p_resource->get_path();
}
- ERR_FAIL_COND_V_MSG(p_path.is_empty(), ERR_INVALID_PARAMETER, "Can't save resource to empty path. Provide non-empty path or a Resource with non-empty resource_path.");
+ ERR_FAIL_COND_V_MSG(path.is_empty(), ERR_INVALID_PARAMETER, "Can't save resource to empty path. Provide non-empty path or a Resource with non-empty resource_path.");
String extension = path.get_extension();
Error err = ERR_FILE_UNRECOGNIZED;