diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-12 12:02:02 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-12 12:02:02 +0200 |
commit | cc61c9d63d947b12b45a671c657e568cdcbd2bad (patch) | |
tree | aa42727334245a6a264aaaf83a1564f6219083f1 /core/variant/array.cpp | |
parent | 38ca83e16f09ff977e5197e103c73168a0b5de70 (diff) | |
parent | 893f889d74b35bb7330c3ff3d0187042770a4490 (diff) | |
download | redot-engine-cc61c9d63d947b12b45a671c657e568cdcbd2bad.tar.gz |
Merge pull request #81487 from AThousandShips/null_check_core
[Core] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
Diffstat (limited to 'core/variant/array.cpp')
-rw-r--r-- | core/variant/array.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant/array.cpp b/core/variant/array.cpp index 5a0ded6c01..4c9ee68ab5 100644 --- a/core/variant/array.cpp +++ b/core/variant/array.cpp @@ -52,7 +52,7 @@ public: void Array::_ref(const Array &p_from) const { ArrayPrivate *_fp = p_from._p; - ERR_FAIL_COND(!_fp); // should NOT happen. + ERR_FAIL_NULL(_fp); // Should NOT happen. if (_fp == _p) { return; // whatever it is, nothing to do here move along |