Rename Array.invert() to Array.reverse()

Does the same internally for List and Vector<>, which includes all
PackedArray types.
This commit is contained in:
Marcel Admiraal 2021-03-14 07:21:32 +00:00
parent 07f076fa4f
commit 755c70b871
35 changed files with 57 additions and 57 deletions

View file

@ -298,7 +298,7 @@ struct GDScriptUtilityFunctionsDefinitions {
sname.push_back(p->name);
p = p->_owner;
}
sname.invert();
sname.reverse();
if (!p->path.is_resource_file()) {
r_error.error = Callable::CallError::CALL_ERROR_INVALID_ARGUMENT;