Fixed (probably debug only) crash: evaluating the pointer arithmetic
left to right had invalid intermediate result (i>0; offset <0).
This commit is contained in:
@@ -440,8 +440,8 @@ void ProtocolManager::update()
|
||||
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 --;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user