Merge pull request #48382 from MaxStgs/fix_phash_translation
Check PHashTranslation generate p_from is valid
This commit is contained in:
commit
3b60911857
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue