SI: Fix bounds check in GetDeviceType

This commit is contained in:
Lioncash 2014-09-27 16:44:21 -04:00
parent 23e2301223
commit 1c42fd9928

View File

@ -504,7 +504,7 @@ void UpdateDevices()
SIDevices GetDeviceType(int channel)
{
if (channel < 0 || channel > 4)
if (channel < 0 || channel > 3)
return SIDEVICE_NONE;
else
return g_Channel[channel].m_pDevice->GetDeviceType();