Fix array understep when mapping exit tunnel
This commit is contained in:
parent
3a8ca07132
commit
f817a7e603
|
@ -1670,7 +1670,7 @@ unsigned set_segment_depths(int start_seg, array<ubyte, MAX_SEGMENTS> *limit, se
|
|||
int childnum;
|
||||
|
||||
childnum = Segments[curseg].children[i];
|
||||
if (childnum != -1)
|
||||
if (childnum != -1 && childnum != -2)
|
||||
if (!limit || (*limit)[childnum])
|
||||
if (!visited[childnum]) {
|
||||
visited[childnum] = 1;
|
||||
|
|
Loading…
Reference in a new issue