mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-25 14:54:56 +00:00
[InputCommon] Fix a bug in ControllerInterface::UpdateOutput() in ControllerInterface.cpp. The variable ok_count was never incremented, which caused the function to always return false.
This commit is contained in:
parent
d03fb11188
commit
af951f467e
1 changed files with 5 additions and 5 deletions
|
@ -178,11 +178,11 @@ bool ControllerInterface::UpdateOutput(const bool force)
|
||||||
|
|
||||||
size_t ok_count = 0;
|
size_t ok_count = 0;
|
||||||
|
|
||||||
std::vector<Device*>::const_iterator
|
for (auto d = m_devices.cbegin(); d != m_devices.cend(); ++d)
|
||||||
d = m_devices.begin(),
|
{
|
||||||
e = m_devices.end();
|
if ((*d)->UpdateOutput())
|
||||||
for (;d != e; ++d)
|
++ok_count;
|
||||||
(*d)->UpdateOutput();
|
}
|
||||||
|
|
||||||
return (m_devices.size() == ok_count);
|
return (m_devices.size() == ok_count);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue