mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 07:39:26 +01: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
@ -178,11 +178,11 @@ bool ControllerInterface::UpdateOutput(const bool force)
|
||||
|
||||
size_t ok_count = 0;
|
||||
|
||||
std::vector<Device*>::const_iterator
|
||||
d = m_devices.begin(),
|
||||
e = m_devices.end();
|
||||
for (;d != e; ++d)
|
||||
(*d)->UpdateOutput();
|
||||
for (auto d = m_devices.cbegin(); d != m_devices.cend(); ++d)
|
||||
{
|
||||
if ((*d)->UpdateOutput())
|
||||
++ok_count;
|
||||
}
|
||||
|
||||
return (m_devices.size() == ok_count);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user