diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-07-01 13:13:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-01 13:13:27 +0200 |
commit | 9f30638d4bbc5a30c6f4f5cff99910bf8e19c2e3 (patch) | |
tree | 5602434db121711cd85bf48e17f33141b0ddd895 | |
parent | 230a24a49d1987489f44bdd4a3cdaa34d3264437 (diff) | |
parent | 7b7ccf25b67ae6b28bb99b5d54f96cc299ec6b88 (diff) |
Merge pull request #50044 from akien-mga/localvector-find-noerror
LocalVector: Don't error if `from` >= `count`
-rw-r--r-- | core/templates/local_vector.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/templates/local_vector.h b/core/templates/local_vector.h index 5fa0f942aa..668ec513d6 100644 --- a/core/templates/local_vector.h +++ b/core/templates/local_vector.h @@ -178,7 +178,6 @@ public: } int64_t find(const T &p_val, U p_from = 0) const { - ERR_FAIL_UNSIGNED_INDEX_V(p_from, count, -1); for (U i = p_from; i < count; i++) { if (data[i] == p_val) { return int64_t(i); |