1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Add 'from' argument to Array.find()

This commit is contained in:
George Marques
2016-06-10 14:57:56 -03:00
parent f5aadad7ae
commit 269d570420
4 changed files with 10 additions and 10 deletions

View File

@@ -150,9 +150,9 @@ void Array::erase(const Variant& p_value) {
_p->array.erase(p_value);
}
int Array::find(const Variant& p_value) const {
int Array::find(const Variant& p_value, int p_from) const {
return _p->array.find(p_value);
return _p->array.find(p_value, p_from);
}
int Array::find_last(const Variant& p_value) const {