mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Use unused from in local vector find function.
(cherry picked from commit 14d5908057)
This commit is contained in:
committed by
Rémi Verschelde
parent
25bf30da53
commit
7c8bbfadca
@@ -178,7 +178,8 @@ public:
|
||||
}
|
||||
|
||||
int64_t find(const T &p_val, U p_from = 0) const {
|
||||
for (U i = 0; i < count; i++) {
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user