Change CRASH_COND to ERR_FAIL in Cowdata::set
This commit is contained in:
parent
4cdd22212a
commit
bb6ece1450
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ public:
|
||||||
_FORCE_INLINE_ bool is_empty() const { return _ptr == nullptr; }
|
_FORCE_INLINE_ bool is_empty() const { return _ptr == nullptr; }
|
||||||
|
|
||||||
_FORCE_INLINE_ void set(int p_index, const T &p_elem) {
|
_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();
|
_copy_on_write();
|
||||||
_get_data()[p_index] = p_elem;
|
_get_data()[p_index] = p_elem;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue