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:
hiker
2016-02-04 16:56:11 +11:00
parent f580603c97
commit 4fa7a89963

View File

@@ -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 --;
}
}