diff options
| author | David Snopek <dsnopek@gmail.com> | 2023-09-20 07:32:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-20 07:32:14 -0500 |
| commit | b1fd1b65fd2bfbeac9704c2716ed20bcb08d7107 (patch) | |
| tree | b5ba76e9cc29d9c4459b0dceca43a524fab921d4 /include/godot_cpp/classes | |
| parent | 0d6de7a80e328c1969c9feabaf268008764c6812 (diff) | |
| parent | 1e5767693e45f58e2ffdc45d4c4f26057e25a2d6 (diff) | |
| download | redot-cpp-b1fd1b65fd2bfbeac9704c2716ed20bcb08d7107.tar.gz | |
Merge pull request #1242 from AThousandShips/null_check
Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
Diffstat (limited to 'include/godot_cpp/classes')
| -rw-r--r-- | include/godot_cpp/classes/ref.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/godot_cpp/classes/ref.hpp b/include/godot_cpp/classes/ref.hpp index f30928a..f3fc3e9 100644 --- a/include/godot_cpp/classes/ref.hpp +++ b/include/godot_cpp/classes/ref.hpp @@ -63,7 +63,7 @@ class Ref { } void ref_pointer(T *p_ref) { - ERR_FAIL_COND(!p_ref); + ERR_FAIL_NULL(p_ref); if (p_ref->init_ref()) { reference = p_ref; |
