[Scene,Main] Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user