aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/ResourcePack.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-07-07 15:19:00 +0200
committerGitHub <noreply@github.com>2023-07-07 15:19:00 +0200
commite225a721807b00297a5733e9d60fe2b5603de77c (patch)
tree91d9e3ba54a32cb5724f0297dd842b990f065db7 /launcher/minecraft/mod/ResourcePack.cpp
parent2cb22ad280ec0b540ec6e96759d478c60562bc9a (diff)
parent13d67c6524a29daea51242d17ba0c6a2b8593747 (diff)
downloadPrismLauncher-e225a721807b00297a5733e9d60fe2b5603de77c.tar.gz
PrismLauncher-e225a721807b00297a5733e9d60fe2b5603de77c.tar.bz2
PrismLauncher-e225a721807b00297a5733e9d60fe2b5603de77c.zip
Merge pull request #1128 from pandaninjas/fix-implicit-fallthrough
Diffstat (limited to 'launcher/minecraft/mod/ResourcePack.cpp')
-rw-r--r--launcher/minecraft/mod/ResourcePack.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/minecraft/mod/ResourcePack.cpp b/launcher/minecraft/mod/ResourcePack.cpp
index e06c1ac1..6d5978d4 100644
--- a/launcher/minecraft/mod/ResourcePack.cpp
+++ b/launcher/minecraft/mod/ResourcePack.cpp
@@ -102,6 +102,7 @@ std::pair<int, bool> ResourcePack::compare(const Resource& other, SortType type)
auto res = Resource::compare(other, type);
if (res.first != 0)
return res;
+ break;
}
case SortType::PACK_FORMAT: {
auto this_ver = packFormat();
@@ -111,6 +112,7 @@ std::pair<int, bool> ResourcePack::compare(const Resource& other, SortType type)
return { 1, type == SortType::PACK_FORMAT };
if (this_ver < other_ver)
return { -1, type == SortType::PACK_FORMAT };
+ break;
}
}
return { 0, false };