mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- fixed undefined behavior when grouping sections
The current group should not be accessed by reference because its container can be reallocated during iteration https://forum.zdoom.org/viewtopic.php?t=62487
This commit is contained in:
parent
9ff7f338fd
commit
ed72843dec
1 changed files with 1 additions and 1 deletions
|
@ -565,7 +565,7 @@ public:
|
|||
// Don't use iterators here. These arrays are modified inside.
|
||||
for (unsigned j = 0; j < build.Size(); j++)
|
||||
{
|
||||
auto ¤t = build[j];
|
||||
auto current = build[j];
|
||||
for (int i = 0; i < (int)workingSet.Size(); i++)
|
||||
{
|
||||
// Are both sections close together?
|
||||
|
|
Loading…
Reference in a new issue