From bb6ece14501a789031528a7c249246ccfb950516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mikrut?= Date: Wed, 24 Feb 2021 21:36:08 +0100 Subject: [PATCH] Change CRASH_COND to ERR_FAIL in Cowdata::set --- core/templates/cowdata.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/templates/cowdata.h b/core/templates/cowdata.h index 525d9e77cb58..c9855934739b 100644 --- a/core/templates/cowdata.h +++ b/core/templates/cowdata.h @@ -142,7 +142,7 @@ class CowData { _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; }