diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-04-27 11:56:39 +0200 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-04-27 16:22:57 +0200 |
commit | 31e7ee63f21e7b86d41cdb724824d4dc0804f281 (patch) | |
tree | cd7146d05bd3ac5069083a1ca499f6662c4971b5 /editor/gui | |
parent | 6118592c6d88350d01f74faff6fd49754f84a7d0 (diff) | |
download | redot-engine-31e7ee63f21e7b86d41cdb724824d4dc0804f281.tar.gz |
Fix unsafe uses of `Callable.is_null()`
`Callable.is_null()` is not equivalent to `!Callable.is_valid()` and
doesn't guarantee the call is valid.
Diffstat (limited to 'editor/gui')
-rw-r--r-- | editor/gui/editor_validation_panel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/gui/editor_validation_panel.cpp b/editor/gui/editor_validation_panel.cpp index c08af1915f..80bb08517c 100644 --- a/editor/gui/editor_validation_panel.cpp +++ b/editor/gui/editor_validation_panel.cpp @@ -81,7 +81,7 @@ void EditorValidationPanel::set_update_callback(const Callable &p_callback) { } void EditorValidationPanel::update() { - ERR_FAIL_COND(update_callback.is_null()); + ERR_FAIL_COND(!update_callback.is_valid()); if (pending_update) { return; |