removed incorrect usage of std::erase (reported by Brooks Moses)
parent
e85c536caf
commit
a3d54ec4c2
|
@ -142,7 +142,10 @@ void Device::init(Device *other) {
|
||||||
|
|
||||||
void Device::shutdown() {
|
void Device::shutdown() {
|
||||||
Assert(m_initialized);
|
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) {
|
void Device::addCallback(DeviceEventListener *callback) {
|
||||||
|
|
Loading…
Reference in New Issue