mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-19 08:01:50 +00:00
- 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:
parent
ef30ddbd40
commit
0dc3485990
1 changed files with 1 additions and 1 deletions
|
@ -539,7 +539,7 @@ void FDynamicLight::CollectWithinRadius(const DVector3 &opos, FSection *section,
|
||||||
bool hitonesidedback = false;
|
bool hitonesidedback = false;
|
||||||
for (unsigned i = 0; i < collected_ss.Size(); i++)
|
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;
|
section = collected_ss[i].sect;
|
||||||
|
|
||||||
touching_sector = AddLightNode(§ion->lighthead, section, this, touching_sector);
|
touching_sector = AddLightNode(§ion->lighthead, section, this, touching_sector);
|
||||||
|
|
Loading…
Reference in a new issue