use range for

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-07-19 23:08:16 +03:00
parent f393aa684e
commit f8d9cd9a03
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -274,8 +274,7 @@ QString FlameCreationTask::getVersionForLoader(QString uid, QString loaderType,
loadVersionLoop.exec();
}
for (int i = 0; i < vlist->versions().size(); i++) {
auto version = vlist->versions().at(i);
for (auto version : vlist->versions()) {
// first recommended build we find, we use.
if (!version->isRecommended())
continue;