minor dependency crash fix
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
c54fecf5d9
commit
abfd1a4205
@ -201,6 +201,7 @@ Task::Ptr GetModDependenciesTask::prepareDependencyTask(const ModPlatform::Depen
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
removePack(dep.addonId);
|
||||||
qWarning() << "Error while reading mod version empty ";
|
qWarning() << "Error while reading mod version empty ";
|
||||||
qDebug() << doc;
|
qDebug() << doc;
|
||||||
return;
|
return;
|
||||||
|
@ -211,5 +211,7 @@ ModPlatform::IndexedVersion FlameMod::loadDependencyVersions(const ModPlatform::
|
|||||||
return a.date > b.date;
|
return a.date > b.date;
|
||||||
};
|
};
|
||||||
std::sort(versions.begin(), versions.end(), orderSortPredicate);
|
std::sort(versions.begin(), versions.end(), orderSortPredicate);
|
||||||
return versions.front();
|
if (versions.size() != 0)
|
||||||
|
return versions.front();
|
||||||
|
return {};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user