Browse Source

Merge pull request #50044 from akien-mga/localvector-find-noerror

LocalVector: Don't error if `from` >= `count`
Rémi Verschelde 4 years ago
parent
commit
9f30638d4b
1 changed files with 0 additions and 1 deletions
  1. 0 1
      core/templates/local_vector.h

+ 0 - 1
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);