summaryrefslogtreecommitdiffstats
path: root/core/variant/array.cpp
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2021-03-14 07:21:32 +0000
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2021-03-21 10:20:08 +0000
commit755c70b871c659df2d7c3a003593f38775dd7b5d (patch)
tree9196b3da289e7ffc27e321ce6c4d2f97e0af7c95 /core/variant/array.cpp
parent07f076fa4f2896415993bb8e3fb42128423de0d2 (diff)
downloadredot-engine-755c70b871c659df2d7c3a003593f38775dd7b5d.tar.gz
Rename Array.invert() to Array.reverse()
Does the same internally for List and Vector<>, which includes all PackedArray types.
Diffstat (limited to 'core/variant/array.cpp')
-rw-r--r--core/variant/array.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/variant/array.cpp b/core/variant/array.cpp
index 347c6cd82e..beb3bdb709 100644
--- a/core/variant/array.cpp
+++ b/core/variant/array.cpp
@@ -445,8 +445,8 @@ int Array::bsearch_custom(const Variant &p_value, Callable p_callable, bool p_be
return bisect(_p->array, p_value, p_before, less);
}
-void Array::invert() {
- _p->array.invert();
+void Array::reverse() {
+ _p->array.reverse();
}
void Array::push_front(const Variant &p_value) {