From 1e5767693e45f58e2ffdc45d4c4f26057e25a2d6 Mon Sep 17 00:00:00 2001 From: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Date: Tue, 12 Sep 2023 15:33:49 +0200 Subject: Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable --- include/godot_cpp/classes/ref.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/godot_cpp/classes') 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; -- cgit v1.2.3