diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2023-09-09 17:52:40 +0200 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2023-09-12 12:53:06 +0200 |
commit | a29416e3321b678c751f5bd6ebbebed544af09aa (patch) | |
tree | 0a1746dc643ddea8ae9b79532f81823b5e2c7126 /scene/main/canvas_item.cpp | |
parent | 98b50eb3083094a352b36b184d7b60b77ad982fe (diff) | |
download | redot-engine-a29416e3321b678c751f5bd6ebbebed544af09aa.tar.gz |
[Scene,Main] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
Diffstat (limited to 'scene/main/canvas_item.cpp')
-rw-r--r-- | scene/main/canvas_item.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/canvas_item.cpp b/scene/main/canvas_item.cpp index 0f2bf86079..06acdd0237 100644 --- a/scene/main/canvas_item.cpp +++ b/scene/main/canvas_item.cpp @@ -303,7 +303,7 @@ void CanvasItem::_notification(int p_what) { parent = parent->get_parent(); } - ERR_FAIL_COND(!viewport); + ERR_FAIL_NULL(viewport); window = Object::cast_to<Window>(viewport); if (window) { |