Merge pull request #48382 from MaxStgs/fix_phash_translation

Check PHashTranslation generate p_from is valid
This commit is contained in:
Rémi Verschelde 2021-05-03 17:15:41 +02:00 committed by GitHub
commit 3b60911857
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,6 +45,7 @@ struct _PHashTranslationCmp {
void PHashTranslation::generate(const Ref<Translation> &p_from) {
#ifdef TOOLS_ENABLED
ERR_FAIL_COND(p_from.is_null());
List<StringName> keys;
p_from->get_message_list(&keys);