[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:
Lioncash 2013-09-18 10:09:32 -04:00
parent d03fb11188
commit af951f467e

View file

@ -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);
} }