summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/classes/ref.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/godot_cpp/classes/ref.hpp')
-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;