1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Change ClassDB::get_inheriters_from_class.

This commit is contained in:
Yufeng Ying
2025-01-08 20:21:08 +08:00
parent 27b2ba667c
commit 4029051bb1
12 changed files with 23 additions and 23 deletions

View File

@@ -607,8 +607,8 @@ static void _add_allowed_type(const StringName &p_type, List<StringName> *p_vect
p_vector->push_back(p_type);
}
List<StringName> inheriters;
ClassDB::get_inheriters_from_class(p_type, &inheriters);
LocalVector<StringName> inheriters;
ClassDB::get_inheriters_from_class(p_type, inheriters);
for (const StringName &S : inheriters) {
_add_allowed_type(S, p_vector);
}