summaryrefslogtreecommitdiff
path: root/core/array.h
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2020-05-01 17:06:36 +0100
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2020-05-02 14:42:16 +0100
commit4409f3cc68edbe728b6e699e5868b781348108f4 (patch)
tree81f6d520d01447d87b96067676bbcc9b6c3555b6 /core/array.h
parent13aff5338a13ddf4303c19cf9d290d774a26da01 (diff)
Fix array slicing.
Diffstat (limited to 'core/array.h')
-rw-r--r--core/array.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/array.h b/core/array.h
index 2840ce199c..14db57f15f 100644
--- a/core/array.h
+++ b/core/array.h
@@ -44,8 +44,7 @@ class Array {
void _ref(const Array &p_from) const;
void _unref() const;
- int _clamp_index(int p_index) const;
- static int _fix_slice_index(int p_index, int p_arr_len, int p_top_mod);
+ inline int _clamp_slice_index(int p_index) const;
protected:
Array(const Array &p_base, uint32_t p_type, const StringName &p_class_name, const Variant &p_script);