From 5c27e27a4a190225c615bf37baecd8fe3ec9beb3 Mon Sep 17 00:00:00 2001 From: Matthew Parlane Date: Sat, 31 Mar 2012 16:19:29 +1300 Subject: [PATCH] Oops how did that compile... --- Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp | 6 +++--- 1 file 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); }