mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-14 14:02:58 +00:00
configure_system: Fix compiler warning
This commit is contained in:
parent
cdb19e71fe
commit
d34d0bfc87
|
@ -114,8 +114,8 @@ struct Values {
|
||||||
// System
|
// System
|
||||||
bool use_docked_mode;
|
bool use_docked_mode;
|
||||||
bool enable_nfc;
|
bool enable_nfc;
|
||||||
int current_user;
|
s32 current_user;
|
||||||
int language_index;
|
s32 language_index;
|
||||||
|
|
||||||
// Controls
|
// Controls
|
||||||
std::array<std::string, NativeButton::NumButtons> buttons;
|
std::array<std::string, NativeButton::NumButtons> buttons;
|
||||||
|
|
|
@ -240,7 +240,7 @@ void ConfigureSystem::RefreshConsoleID() {
|
||||||
|
|
||||||
void ConfigureSystem::SelectUser(const QModelIndex& index) {
|
void ConfigureSystem::SelectUser(const QModelIndex& index) {
|
||||||
Settings::values.current_user =
|
Settings::values.current_user =
|
||||||
std::clamp<std::size_t>(index.row(), 0, profile_manager->GetUserCount() - 1);
|
std::clamp<s32>(index.row(), 0, static_cast<s32>(profile_manager->GetUserCount() - 1));
|
||||||
|
|
||||||
UpdateCurrentUser();
|
UpdateCurrentUser();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue