summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Lioncash2019-10-17 18:17:39 -0400
committerGravatar Lioncash2019-10-17 18:17:42 -0400
commitd076466f26ad7a55ef485d550733fbcfb06b8d6a (patch)
tree95c2878e769e7e522122caae43b55e612abf653a /src/core
parenthid/npad: Replace std::for_each with ranged for loops (diff)
downloadyuzu-d076466f26ad7a55ef485d550733fbcfb06b8d6a.tar.gz
yuzu-d076466f26ad7a55ef485d550733fbcfb06b8d6a.tar.xz
yuzu-d076466f26ad7a55ef485d550733fbcfb06b8d6a.zip
hid/npad: Add missing break in default case
While not an issue, it does prevent fallthrough from occurring if anything is ever added after this case (unlikely to occur, but this turns a trivial "should not cause issues" into a definite "won't cause issues).
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/hid/controllers/npad.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp
index 27fc7a79b..64a86021f 100644
--- a/src/core/hle/service/hid/controllers/npad.cpp
+++ b/src/core/hle/service/hid/controllers/npad.cpp
@@ -766,6 +766,7 @@ Controller_NPad::NPadControllerType Controller_NPad::DecideBestController(
766 priority_list.push_back(NPadControllerType::JoyLeft); 766 priority_list.push_back(NPadControllerType::JoyLeft);
767 priority_list.push_back(NPadControllerType::JoyRight); 767 priority_list.push_back(NPadControllerType::JoyRight);
768 priority_list.push_back(NPadControllerType::JoyDual); 768 priority_list.push_back(NPadControllerType::JoyDual);
769 break;
769 } 770 }
770 771
771 const auto iter = std::find_if(priority_list.begin(), priority_list.end(), 772 const auto iter = std::find_if(priority_list.begin(), priority_list.end(),