summaryrefslogtreecommitdiffstats
path: root/core/compressed_translation.cpp
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-10-14 11:40:55 +0200
committerqarmin <mikrutrafal54@gmail.com>2019-10-14 11:40:55 +0200
commit616ab4fac200170bc0d2ba1958e424fd309fc494 (patch)
treeb39dcd6dfe36cc5c99ce7f8790631ac242b1217e /core/compressed_translation.cpp
parent1fed266bf5452b30376db62495f4985f6975f2c1 (diff)
downloadredot-engine-616ab4fac200170bc0d2ba1958e424fd309fc494.tar.gz
Small fixes to redundand code, copy paste bugs
Diffstat (limited to 'core/compressed_translation.cpp')
-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);