summaryrefslogtreecommitdiffstats
path: root/core/object/ref_counted.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/object/ref_counted.h')
-rw-r--r--core/object/ref_counted.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/object/ref_counted.h b/core/object/ref_counted.h
index 3386514706..228373d662 100644
--- a/core/object/ref_counted.h
+++ b/core/object/ref_counted.h
@@ -71,7 +71,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;