mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 07:09:03 +00:00
Merge pull request #1170 from lioncash/bounds
SI: Fix bounds check in GetDeviceType
This commit is contained in:
commit
baeca3e03b
1 changed files with 1 additions and 1 deletions
|
@ -504,7 +504,7 @@ void UpdateDevices()
|
||||||
|
|
||||||
SIDevices GetDeviceType(int channel)
|
SIDevices GetDeviceType(int channel)
|
||||||
{
|
{
|
||||||
if (channel < 0 || channel > 4)
|
if (channel < 0 || channel > 3)
|
||||||
return SIDEVICE_NONE;
|
return SIDEVICE_NONE;
|
||||||
else
|
else
|
||||||
return g_Channel[channel].m_pDevice->GetDeviceType();
|
return g_Channel[channel].m_pDevice->GetDeviceType();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue