Clear visited segment array in constructor

This commit is contained in:
Kp 2013-12-22 05:27:46 +00:00
parent 9a7185f770
commit 99626b2f34
2 changed files with 4 additions and 1 deletions

View file

@ -306,6 +306,10 @@ protected:
return R(a[idx], bit);
}
public:
visited_segment_mask_t()
{
clear();
}
void clear()
{
a.fill(0);

View file

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