fix using ++/-- to vectors that contain holes

This commit is contained in:
Vern Paxson 2021-04-14 18:16:19 -07:00
parent 1bbb7fc4bd
commit ff393dbd8a

View file

@ -1239,6 +1239,7 @@ ValPtr IncrExpr::Eval(Frame* f) const
for ( unsigned int i = 0; i < v_vec->Size(); ++i )
{
auto elt = v_vec->ValAt(i);
if ( elt )
v_vec->Assign(i, DoSingleEval(f, elt.get()));
}