You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Check PHashTranslation generate p_from is valid
(cherry picked from commit 0bb40df4bb)
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user