diff options
author | PandaNinjas <admin@malwarefight.wip.la> | 2023-06-07 19:37:54 -0400 |
---|---|---|
committer | PandaNinjas <admin@malwarefight.wip.la> | 2023-06-07 19:37:54 -0400 |
commit | 318d11481d719cf537ecdc00f8d676494bab22b6 (patch) | |
tree | 081a070aeeb4ca0f05fceef19eb64d5075edaf04 /launcher/minecraft/mod/ResourcePack.cpp | |
parent | 5d425ecc025aa1fc4a5292961a5ff1b18a108885 (diff) | |
download | PrismLauncher-318d11481d719cf537ecdc00f8d676494bab22b6.tar.gz PrismLauncher-318d11481d719cf537ecdc00f8d676494bab22b6.tar.bz2 PrismLauncher-318d11481d719cf537ecdc00f8d676494bab22b6.zip |
Resolve other switch fallthrough issues
Diffstat (limited to 'launcher/minecraft/mod/ResourcePack.cpp')
-rw-r--r-- | launcher/minecraft/mod/ResourcePack.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/minecraft/mod/ResourcePack.cpp b/launcher/minecraft/mod/ResourcePack.cpp index 759d2b56..32a789f5 100644 --- a/launcher/minecraft/mod/ResourcePack.cpp +++ b/launcher/minecraft/mod/ResourcePack.cpp @@ -95,6 +95,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(); @@ -104,6 +105,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 }; |