summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/classes
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2023-09-12 15:33:49 +0200
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2023-09-13 14:34:04 +0200
commit1e5767693e45f58e2ffdc45d4c4f26057e25a2d6 (patch)
treeb65c1480f53655ef849d65b1051c89d4e0b769c0 /include/godot_cpp/classes
parent6caf4909d42c04de25d9c34e89da7aa078fb485f (diff)
downloadredot-cpp-1e5767693e45f58e2ffdc45d4c4f26057e25a2d6.tar.gz
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.hpp2
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;