- fixed: in CollectWithinRadius, make pos a value variable instead of a reference.

The underlying data here can be reallocated and invalidate what it points to.
This commit is contained in:
Christoph Oelckers 2019-03-02 22:10:44 +01:00
parent ef30ddbd40
commit 0dc3485990

View file

@ -539,7 +539,7 @@ void FDynamicLight::CollectWithinRadius(const DVector3 &opos, FSection *section,
bool hitonesidedback = false;
for (unsigned i = 0; i < collected_ss.Size(); i++)
{
auto &pos = collected_ss[i].pos;
auto pos = collected_ss[i].pos;
section = collected_ss[i].sect;
touching_sector = AddLightNode(&section->lighthead, section, this, touching_sector);