mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
DLScript: Fix llvm compilation error.
`Ordered comparison between pointer and zero`
This commit is contained in:
parent
36f568903b
commit
fe4336f165
@ -112,7 +112,7 @@ List<ClassAPI> generate_c_api_classes() {
|
||||
bool is_reference = false;
|
||||
List<StringName> inheriters;
|
||||
ClassDB::get_inheriters_from_class("Reference", &inheriters);
|
||||
is_reference = inheriters.find(class_name) < 0;
|
||||
is_reference = !!inheriters.find(class_name);
|
||||
// @Unclear
|
||||
class_api.memory_own = !class_api.is_singleton && is_reference;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user