summaryrefslogtreecommitdiffstats
path: root/core/io/resource_format_binary.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-07-23 15:08:44 +0200
committerGitHub <noreply@github.com>2019-07-23 15:08:44 +0200
commit4c943cca2c6d6cd7a197cb1601a6356e65254837 (patch)
tree0f906f50ff2013f20a274ea6c746c6574a15e1f2 /core/io/resource_format_binary.cpp
parentc7a427241e7f4dd6ab9ac89f51d3bb9f6632008b (diff)
parentaab8da25ad2c3e6d2df03abbc8e35c1725938c40 (diff)
downloadredot-engine-4c943cca2c6d6cd7a197cb1601a6356e65254837.tar.gz
Merge pull request #30716 from qarmin/fixed_static_analiser_code
Fix some code found by Coverity Scan and PVS Studio
Diffstat (limited to 'core/io/resource_format_binary.cpp')
-rw-r--r--core/io/resource_format_binary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/resource_format_binary.cpp b/core/io/resource_format_binary.cpp
index 38bef2768e..146480e5a2 100644
--- a/core/io/resource_format_binary.cpp
+++ b/core/io/resource_format_binary.cpp
@@ -718,8 +718,8 @@ Error ResourceInteractiveLoaderBinary::poll() {
Resource *r = Object::cast_to<Resource>(obj);
if (!r) {
error = ERR_FILE_CORRUPT;
- memdelete(obj); //bye
ERR_EXPLAIN(local_path + ":Resource type in resource field not a resource, type is: " + obj->get_class());
+ memdelete(obj); //bye
ERR_FAIL_V(ERR_FILE_CORRUPT);
}