Check PHashTranslation generate p_from is valid

(cherry picked from commit 0bb40df4bb)
This commit is contained in:
MaxStgs 2021-05-03 19:54:03 +05:00 committed by Rémi Verschelde
parent 3c089f6a4f
commit c5332b1d7a
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

View File

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