Godot Engine – Multi-platform 2D and 3D game engine
Fix incorrect release order for items in the asset store
Michael Alexsander2fdeee8643d3
diff --git a/editor/asset_library/asset_library_editor_plugin.cpp b/editor/asset_library/asset_library_editor_plugin.cppindex 5c47524d99a..e10b06a3bbc 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<int> 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"));