summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-10-15 09:54:58 +0200
committerGitHub <noreply@github.com>2019-10-15 09:54:58 +0200
commit44293db4462f551617147b85e2ede66acf741c55 (patch)
treea759d0146077ef7e6d390884ae18578ad8411e73 /core
parent48d3458f74ee3a5c0596c905b72b52af612cde87 (diff)
parent616ab4fac200170bc0d2ba1958e424fd309fc494 (diff)
Merge pull request #32820 from qarmin/small_fixes_static_analyzer
Small fixes to redundand code, copy paste bugs
Diffstat (limited to 'core')
-rw-r--r--core/compressed_translation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/compressed_translation.cpp b/core/compressed_translation.cpp
index f102721470..d927b74897 100644
--- a/core/compressed_translation.cpp
+++ b/core/compressed_translation.cpp
@@ -136,6 +136,8 @@ void PHashTranslation::generate(const Ref<Translation> &p_from) {
bucket_table_size += 2 + b.size() * 4;
}
+ ERR_FAIL_COND(bucket_table_size == 0);
+
hash_table.resize(size);
bucket_table.resize(bucket_table_size);