diff options
| author | qarmin <mikrutrafal54@gmail.com> | 2019-10-14 11:40:55 +0200 |
|---|---|---|
| committer | qarmin <mikrutrafal54@gmail.com> | 2019-10-14 11:40:55 +0200 |
| commit | 616ab4fac200170bc0d2ba1958e424fd309fc494 (patch) | |
| tree | b39dcd6dfe36cc5c99ce7f8790631ac242b1217e /core | |
| parent | 1fed266bf5452b30376db62495f4985f6975f2c1 (diff) | |
| download | redot-engine-616ab4fac200170bc0d2ba1958e424fd309fc494.tar.gz | |
Small fixes to redundand code, copy paste bugs
Diffstat (limited to 'core')
| -rw-r--r-- | core/compressed_translation.cpp | 2 |
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); |
