Fix array understep when mapping exit tunnel

This commit is contained in:
Kp 2013-12-18 03:37:12 +00:00
parent 3a8ca07132
commit f817a7e603

View file

@ -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;