Clear visited segment array in constructor
This commit is contained in:
parent
9a7185f770
commit
99626b2f34
|
@ -306,6 +306,10 @@ protected:
|
|||
return R(a[idx], bit);
|
||||
}
|
||||
public:
|
||||
visited_segment_mask_t()
|
||||
{
|
||||
clear();
|
||||
}
|
||||
void clear()
|
||||
{
|
||||
a.fill(0);
|
||||
|
|
|
@ -2161,7 +2161,6 @@ static void init_boss_segments(short segptr[], int *num_segs, int size_check, in
|
|||
#endif
|
||||
|
||||
visited_segment_bitarray_t visited;
|
||||
visited.clear();
|
||||
|
||||
while (tail != head) {
|
||||
int sidenum;
|
||||
|
|
Loading…
Reference in a new issue