mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-05-31 17:10:51 +00:00
Fixed: A vector value could point to garbage data after being 'unnested'
This commit is contained in:
parent
5643d6c692
commit
06ec6318a9
1 changed files with 1 additions and 0 deletions
|
@ -519,6 +519,7 @@ FxExpression *FxVectorValue::Resolve(FCompileContext&ctx)
|
||||||
xyz[2] = xyz[1];
|
xyz[2] = xyz[1];
|
||||||
xyz[1] = vi->xyz[1];
|
xyz[1] = vi->xyz[1];
|
||||||
xyz[0] = vi->xyz[0];
|
xyz[0] = vi->xyz[0];
|
||||||
|
vi->xyz[0] = vi->xyz[1] = nullptr; // Don't delete our own expressions.
|
||||||
delete vi;
|
delete vi;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue