aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/DataPack.cpp
diff options
context:
space:
mode:
authorPandaNinjas <admin@malwarefight.wip.la>2023-06-07 19:37:54 -0400
committerPandaNinjas <admin@malwarefight.wip.la>2023-06-07 19:37:54 -0400
commit318d11481d719cf537ecdc00f8d676494bab22b6 (patch)
tree081a070aeeb4ca0f05fceef19eb64d5075edaf04 /launcher/minecraft/mod/DataPack.cpp
parent5d425ecc025aa1fc4a5292961a5ff1b18a108885 (diff)
downloadPrismLauncher-318d11481d719cf537ecdc00f8d676494bab22b6.tar.gz
PrismLauncher-318d11481d719cf537ecdc00f8d676494bab22b6.tar.bz2
PrismLauncher-318d11481d719cf537ecdc00f8d676494bab22b6.zip
Resolve other switch fallthrough issues
Diffstat (limited to 'launcher/minecraft/mod/DataPack.cpp')
-rw-r--r--launcher/minecraft/mod/DataPack.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/minecraft/mod/DataPack.cpp b/launcher/minecraft/mod/DataPack.cpp
index ca75cd2a..c5754638 100644
--- a/launcher/minecraft/mod/DataPack.cpp
+++ b/launcher/minecraft/mod/DataPack.cpp
@@ -74,6 +74,7 @@ std::pair<int, bool> DataPack::compare(const Resource& other, SortType type) con
auto res = Resource::compare(other, type);
if (res.first != 0)
return res;
+ break;
}
case SortType::PACK_FORMAT: {
auto this_ver = packFormat();
@@ -83,6 +84,7 @@ std::pair<int, bool> DataPack::compare(const Resource& other, SortType type) con
return { 1, type == SortType::PACK_FORMAT };
if (this_ver < other_ver)
return { -1, type == SortType::PACK_FORMAT };
+ break;
}
}
return { 0, false };