mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
clean up bounds checking for SIDEVICE_ENUM
This commit is contained in:

committed by
Calvin Cochran

parent
1ab99ee22c
commit
ba45a5999f
@ -287,7 +287,7 @@ bool BootCore(const std::string& _rFilename)
|
||||
{
|
||||
int source;
|
||||
controls_section->Get(StringFromFormat("PadType%u", i), &source, -1);
|
||||
if (source >= (int)SIDEVICE_NONE && source <= (int)SIDEVICE_WIIU_ADAPTER)
|
||||
if (source >= SIDEVICE_NONE && source < SIDEVICE_COUNT)
|
||||
{
|
||||
SConfig::GetInstance().m_SIDevice[i] = (SIDevices)source;
|
||||
config_cache.bSetPads[i] = true;
|
||||
|
Reference in New Issue
Block a user