Merge pull request #1242 from AThousandShips/null_check

Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
This commit is contained in:
David Snopek
2023-09-20 07:32:14 -05:00
committed by GitHub
11 changed files with 21 additions and 21 deletions

View File

@@ -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;