diff options
| author | Matthew Parlane <parlane@gmail.com> | 2012-03-31 16:19:29 +1300 |
|---|---|---|
| committer | Matthew Parlane <parlane@gmail.com> | 2012-03-31 16:26:41 +1300 |
| commit | 5c27e27a4a190225c615bf37baecd8fe3ec9beb3 (patch) | |
| tree | 289243ef427b67759adc901f794c0ef05da58bd0 /Source/Core | |
| parent | 763916a779fbaccedc87117d5004c2503e7cf89d (diff) | |
Oops how did that compile...
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp index cc5a982479..7520aed722 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp @@ -788,14 +788,14 @@ bool CWII_IPC_HLE_Device_es::IOCtlV(u32 _CommandAddress) WII_IPC_HLE_Interface::Init(); static CWII_IPC_HLE_Device_usb_oh1_57e_305* s_Usb = GetUsbPointer(); - for (unsigned int i = 0; i < 4; i++) + for (unsigned int i = 0; i < s_Usb->m_WiiMotes.size(); i++) { - if (s_Usb->m_WiiMotes[i] && s_Usb->m_WiiMotes[i].IsConnected()) + if (s_Usb->m_WiiMotes[i].IsConnected()) { s_Usb->m_WiiMotes[i].Activate(false); s_Usb->m_WiiMotes[i].Activate(true); } - else if (s_Usb->m_WiiMotes[i]) + else { s_Usb->m_WiiMotes[i].Activate(false); } |
