Fixed: A vector value could point to garbage data after being 'unnested'

This commit is contained in:
Leonard2 2016-10-30 06:55:16 +01:00
parent 5643d6c692
commit 06ec6318a9

View file

@ -519,6 +519,7 @@ FxExpression *FxVectorValue::Resolve(FCompileContext&ctx)
xyz[2] = xyz[1];
xyz[1] = vi->xyz[1];
xyz[0] = vi->xyz[0];
vi->xyz[0] = vi->xyz[1] = nullptr; // Don't delete our own expressions.
delete vi;
}
}