diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-05-05 16:44:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 16:44:52 +0200 |
commit | 8227947d41eadc00ccbd3c2ddbcf83daa3591208 (patch) | |
tree | 6b3f66c7be1b024a092f064ba47ec05a8a636ecb /core/array.h | |
parent | 88e242116ad986734b31ec88a3fed3d1c0bbcf1a (diff) | |
parent | 4409f3cc68edbe728b6e699e5868b781348108f4 (diff) | |
download | redot-engine-8227947d41eadc00ccbd3c2ddbcf83daa3591208.tar.gz |
Merge pull request #38415 from madmiraal/fix-array-slicing
Fix array slicing.
Diffstat (limited to 'core/array.h')
-rw-r--r-- | core/array.h | 3 |
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); |