diff options
Diffstat (limited to 'core/templates/paged_array.h')
-rw-r--r-- | core/templates/paged_array.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/templates/paged_array.h b/core/templates/paged_array.h index 69a792958a..6b7e0cee16 100644 --- a/core/templates/paged_array.h +++ b/core/templates/paged_array.h @@ -229,6 +229,12 @@ public: count--; } + void remove_at_unordered(uint64_t p_index) { + ERR_FAIL_UNSIGNED_INDEX(p_index, count); + (*this)[p_index] = (*this)[count - 1]; + pop_back(); + } + void clear() { //destruct if needed if (!std::is_trivially_destructible<T>::value) { |