Core: Fix some warnings
This commit is contained in:
1 parent
6962d5bc52
commit
0691971d82
5 files changed
+15
-11
No files matched your search
@@ -2184,12 +2184,13 @@ void SetupWiimotes()
|
||||
ASSERT(IsNetPlayRunning());
|
||||
const NetSettings& netplay_settings = netplay_client->GetNetSettings();
|
||||
const PadMappingArray& wiimote_map = netplay_client->GetWiimoteMapping();
|
||||
for (int i = 0; i < netplay_settings.m_WiimoteExtension.size(); i++)
|
||||
for (size_t i = 0; i < netplay_settings.m_WiimoteExtension.size(); i++)
|
||||
{
|
||||
if (wiimote_map[i] > 0)
|
||||
{
|
||||
static_cast<ControllerEmu::Extension*>(
|
||||
static_cast<WiimoteEmu::Wiimote*>(Wiimote::GetConfig()->GetController(i))
|
||||
static_cast<WiimoteEmu::Wiimote*>(
|
||||
Wiimote::GetConfig()->GetController(static_cast<int>(i)))
|
||||
->GetWiimoteGroup(WiimoteEmu::WiimoteGroup::Extension))
|
||||
->switch_extension = netplay_settings.m_WiimoteExtension[i];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user