removed incorrect usage of std::erase (reported by Brooks Moses)

metadata
Wenzel Jakob 2015-04-20 14:40:57 +02:00
parent e85c536caf
commit a3d54ec4c2
1 changed files with 4 additions and 1 deletions

View File

@ -142,7 +142,10 @@ void Device::init(Device *other) {
void Device::shutdown() {
Assert(m_initialized);
std::remove(m_session->m_devices.begin(), m_session->m_devices.end(), this);
m_session->m_devices.erase(
std::remove(m_session->m_devices.begin(), m_session->m_devices.end(), this),
m_session->m_devices.end()
);
}
void Device::addCallback(DeviceEventListener *callback) {