Fixed crash (probably in debug mode only): iterator+i+o would
first compute and check iterator+i, and not iterator+(i+o), which caused a crash.
This commit is contained in:
parent
27f1828c73
commit
e74ef461a4
@ -456,8 +456,8 @@ void ProtocolManager::asynchronousUpdate()
|
||||
if (result)
|
||||
{
|
||||
m_events_to_process.getData()
|
||||
.erase(m_events_to_process.getData().begin()+i+offset,
|
||||
m_events_to_process.getData().begin()+i+offset+1);
|
||||
.erase(m_events_to_process.getData().begin()+(i+offset),
|
||||
m_events_to_process.getData().begin()+(i+offset+1));
|
||||
offset --;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user