summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-09-11 15:02:11 +0200
committerGitHub <noreply@github.com>2020-09-11 15:02:11 +0200
commit4b846ebc56a0493e31a2767a91816cdf5d5b2c9e (patch)
tree55e53b25bdcf72bb89d2e8a438e6e219537e248b /core
parent9924d6ef6b9cb99474eaaa0012422dbed1af2188 (diff)
parent4feba936303646e1b02108f6ecf6aabae05ecbc1 (diff)
Merge pull request #41977 from madmiraal/fix-vector_h
Add missing reference to const T Vector::get().
Diffstat (limited to 'core')
-rw-r--r--core/vector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vector.h b/core/vector.h
index 5fb630c21c..5a61f0eae3 100644
--- a/core/vector.h
+++ b/core/vector.h
@@ -82,7 +82,7 @@ public:
_FORCE_INLINE_ bool empty() const { return _cowdata.empty(); }
_FORCE_INLINE_ T get(int p_index) { return _cowdata.get(p_index); }
- _FORCE_INLINE_ const T get(int p_index) const { return _cowdata.get(p_index); }
+ _FORCE_INLINE_ const T &get(int p_index) const { return _cowdata.get(p_index); }
_FORCE_INLINE_ void set(int p_index, const T &p_elem) { _cowdata.set(p_index, p_elem); }
_FORCE_INLINE_ int size() const { return _cowdata.size(); }
Error resize(int p_size) { return _cowdata.resize(p_size); }