summaryrefslogtreecommitdiff
path: root/core/templates/cowdata.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-02-24 22:48:33 +0100
committerGitHub <noreply@github.com>2021-02-24 22:48:33 +0100
commit273fe7e656d60e6506677f187a50c094169ff8b3 (patch)
treee3e6e4556f22b9a8a9552d59400df91f0d150df9 /core/templates/cowdata.h
parent305683f83b3715bd936a3d0425be6181d86ad542 (diff)
parentbb6ece14501a789031528a7c249246ccfb950516 (diff)
Merge pull request #36476 from qarmin/vector_set_err
Change CRASH_COND to ERR_FAIL in Cowdata::set
Diffstat (limited to 'core/templates/cowdata.h')
-rw-r--r--core/templates/cowdata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/templates/cowdata.h b/core/templates/cowdata.h
index 525d9e77cb..c985593473 100644
--- a/core/templates/cowdata.h
+++ b/core/templates/cowdata.h
@@ -142,7 +142,7 @@ public:
_FORCE_INLINE_ bool is_empty() const { return _ptr == nullptr; }
_FORCE_INLINE_ void set(int p_index, const T &p_elem) {
- CRASH_BAD_INDEX(p_index, size());
+ ERR_FAIL_INDEX(p_index, size());
_copy_on_write();
_get_data()[p_index] = p_elem;
}