You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
Check PHashTranslation generate p_from is valid
This commit is contained in:
@@ -46,6 +46,7 @@ void OptimizedTranslation::generate(const Ref<Translation> &p_from) {
|
|||||||
// This method compresses a Translation instance.
|
// This method compresses a Translation instance.
|
||||||
// Right now, it doesn't handle context or plurals, so Translation subclasses using plurals or context (i.e TranslationPO) shouldn't be compressed.
|
// Right now, it doesn't handle context or plurals, so Translation subclasses using plurals or context (i.e TranslationPO) shouldn't be compressed.
|
||||||
#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