Revert f1c197e700 and fix our crash issue...this is silly

This commit is contained in:
DarthArgus
2016-03-03 11:19:23 -06:00
parent 5a2f6b8af0
commit 519be81acc
@@ -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();