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
@ -377,7 +377,7 @@ bool ProtocolManager::sendEvent(EventProcessingInfo* event, bool synchronous)
|
||||
index++;
|
||||
continue;
|
||||
}
|
||||
bool result = synchronous ? p->notifyEvent(event->m_event)
|
||||
bool result = synchronous ? p->notifyEvent(event->m_event)
|
||||
: p->notifyEventAsynchronous(event->m_event);
|
||||
if (result)
|
||||
{
|
||||
@ -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