mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-29 23:15:56 -04:00
Revert f1c197e700 and fix our crash issue...this is silly
This commit is contained in:
@@ -184,6 +184,12 @@ inline typename AutoDeltaSet<ValueType, ObjectType>::const_iterator AutoDeltaSet
|
||||
m_commands.push_back(c);
|
||||
++m_baselineCommandCount;
|
||||
|
||||
// hack to convert from const_iterator to iterator as required by std libs
|
||||
typename SetType::iterator tmp(m_set.begin());
|
||||
std::advance(tmp, std::distance<const_iterator>(tmp, i));
|
||||
i++;
|
||||
m_set.erase(tmp);
|
||||
|
||||
touch();
|
||||
onErase(c.value);
|
||||
onChanged();
|
||||
|
||||
Reference in New Issue
Block a user