- Item *it = dynamic_cast<Item*> (all[i]);
- if (Paper_column::is_breakable (all[i])
- && (i == 0 || it->find_prebroken_piece (LEFT))
- && (i == all.size () - 1 || it->find_prebroken_piece (RIGHT)))
- retval.push_back (i);
+ Item *it = dynamic_cast<Item *> (cols_[i]);
+ if (Paper_column::is_breakable (cols_[i])
+ && (i == 0 || it->find_prebroken_piece (LEFT))
+ && (i == cols_.size () - 1 || it->find_prebroken_piece (RIGHT)))
+ {
+ break_indices_.push_back (i);
+ break_ranks_.push_back (it->get_column ()->get_rank ());
+ }