Browse Source

Check PHashTranslation generate p_from is valid

MaxStgs 4 years ago
parent
commit
0bb40df4bb
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/compressed_translation.cpp

+ 1 - 0
core/compressed_translation.cpp

@@ -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);