diff options
author | Rafał Mikrut <mikrutrafal@protonmail.com> | 2021-02-24 21:36:08 +0100 |
---|---|---|
committer | Rafał Mikrut <mikrutrafal@protonmail.com> | 2021-02-24 21:36:08 +0100 |
commit | bb6ece14501a789031528a7c249246ccfb950516 (patch) | |
tree | 1916a6f9e76406368fe76b7392708c5d1375aa5e | |
parent | 4cdd22212a9b1acbb62f0c82160f80c8aed2191e (diff) |
Change CRASH_COND to ERR_FAIL in Cowdata::set
-rw-r--r-- | core/templates/cowdata.h | 2 |
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; } |