[Scene,Main] Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable

This commit is contained in:
A Thousand Ships
2023-09-09 17:52:40 +02:00
parent 98b50eb308
commit a29416e332
15 changed files with 31 additions and 31 deletions

View File

@ -351,7 +351,7 @@ void ScrollContainer::_notification(int p_what) {
case NOTIFICATION_READY: {
Viewport *viewport = get_viewport();
ERR_FAIL_COND(!viewport);
ERR_FAIL_NULL(viewport);
viewport->connect("gui_focus_changed", callable_mp(this, &ScrollContainer::_gui_focus_changed));
_reposition_children();
} break;