diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-28 13:35:42 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-28 13:35:42 +0300 |
commit | 5f1074471d254ff82af1980e15a53b71ae121186 (patch) | |
tree | 42fb621f6ca1831554e225e3d7414f235d3b13d4 /launcher/modplatform/modrinth/ModrinthPackIndex.cpp | |
parent | c04cee7ff75730df2c859ecae4567abb4e98dcd4 (diff) | |
download | PrismLauncher-5f1074471d254ff82af1980e15a53b71ae121186.tar.gz PrismLauncher-5f1074471d254ff82af1980e15a53b71ae121186.tar.bz2 PrismLauncher-5f1074471d254ff82af1980e15a53b71ae121186.zip |
Corected variable name
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/modplatform/modrinth/ModrinthPackIndex.cpp')
-rw-r--r-- | launcher/modplatform/modrinth/ModrinthPackIndex.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthPackIndex.cpp b/launcher/modplatform/modrinth/ModrinthPackIndex.cpp index 4d0882f6..d93d870c 100644 --- a/launcher/modplatform/modrinth/ModrinthPackIndex.cpp +++ b/launcher/modplatform/modrinth/ModrinthPackIndex.cpp @@ -109,7 +109,7 @@ void Modrinth::loadIndexedPackVersions(ModPlatform::IndexedPack& pack, unsortedVersions.append(file); } auto orderSortPredicate = [](const ModPlatform::IndexedVersion& a, const ModPlatform::IndexedVersion& b) -> bool { - bool a_better_release = a.verison_type <= b.verison_type; + bool a_better_release = a.version_type <= b.version_type; // dates are in RFC 3339 format return a.date > b.date && a_better_release; }; @@ -139,7 +139,7 @@ auto Modrinth::loadIndexedPackVersion(QJsonObject& obj, QString preferred_hash_t } file.version = Json::requireString(obj, "name"); file.version_number = Json::requireString(obj, "version_number"); - file.verison_type = ModPlatform::IndexedVersionType(Json::requireString(obj, "version_type")); + file.version_type = ModPlatform::IndexedVersionType(Json::requireString(obj, "version_type")); file.changelog = Json::requireString(obj, "changelog"); |