diff --git a/editor/asset_library/asset_library_editor_plugin.cpp b/editor/asset_library/asset_library_editor_plugin.cpp index 5c47524d99..e10b06a3bb 100644 --- a/editor/asset_library/asset_library_editor_plugin.cpp +++ b/editor/asset_library/asset_library_editor_plugin.cpp @@ -1945,11 +1945,7 @@ void EditorAssetLibrary::_http_request_completed(int p_status, int p_code, const } LocalVector engine_version = { GODOT_VERSION_MAJOR, GODOT_VERSION_MINOR, GODOT_VERSION_PATCH }; - Array arr = dt; - // Iterate backwards, so the newer releases are added first. - for (int i = arr.size() - 1; i >= 0; i--) { - Dictionary d = arr[i]; - + for (const Dictionary d : (Array)dt) { ERR_FAIL_COND(!d.has("download_url")); ERR_FAIL_COND(!d.has("version")); ERR_FAIL_COND(!d.has("stable"));