summaryrefslogtreecommitdiffstats
path: root/scene/main/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/main/window.cpp')
-rw-r--r--scene/main/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp
index 71ec9b29c5..2c28dc31d6 100644
--- a/scene/main/window.cpp
+++ b/scene/main/window.cpp
@@ -779,7 +779,7 @@ void Window::set_visible(bool p_visible) {
return;
}
- ERR_FAIL_COND_MSG(get_parent() == nullptr, "Can't change visibility of main window.");
+ ERR_FAIL_NULL_MSG(get_parent(), "Can't change visibility of main window.");
visible = p_visible;