You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
EditorAssetLibrary: Don't call add_child() on uninitialized pointer
Fixes possible crash and fixes crash when using undefined sanitizer. The "search_hb" is already added into "library_main" container.
This commit is contained in:
@@ -1282,8 +1282,6 @@ EditorAssetLibrary::EditorAssetLibrary(bool p_templates_only) {
|
||||
}
|
||||
|
||||
|
||||
library_vb->add_child(search_hb);
|
||||
|
||||
HBoxContainer *search_hb2 = memnew( HBoxContainer );
|
||||
library_main->add_child(search_hb2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user