aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/modrinth/ModrinthPackIndex.cpp
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-26 17:16:50 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-26 17:16:50 -0700
commit2680dba0aa74abefea58903dadad6578381101cb (patch)
treee952dfb0a087c41fcae75821d95670671083e57c /launcher/modplatform/modrinth/ModrinthPackIndex.cpp
parent832a61f88674ee1ba01d7618e1021184cc851e3a (diff)
downloadPrismLauncher-2680dba0aa74abefea58903dadad6578381101cb.tar.gz
PrismLauncher-2680dba0aa74abefea58903dadad6578381101cb.tar.bz2
PrismLauncher-2680dba0aa74abefea58903dadad6578381101cb.zip
fix: use <= when compareing release types
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/modplatform/modrinth/ModrinthPackIndex.cpp')
-rw-r--r--launcher/modplatform/modrinth/ModrinthPackIndex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthPackIndex.cpp b/launcher/modplatform/modrinth/ModrinthPackIndex.cpp
index 2e9d1457..e643df67 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.verison_type <= b.verison_type;
// dates are in RFC 3339 format
return a.date > b.date && a_better_release;
};