mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
maintain castle report information
This commit is contained in:
parent
ea2e85ac87
commit
d6c050abd6
@ -772,9 +772,13 @@ void pruneCastle(CastleProto &castle, ReportID report) {
|
||||
/** \brief Set all reports to the given one. */
|
||||
static
|
||||
void setReports(CastleProto &castle, ReportID report) {
|
||||
for (auto &repeat : castle.repeats | map_values) {
|
||||
castle.report_map.clear();
|
||||
for (auto &e : castle.repeats) {
|
||||
u32 top = e.first;
|
||||
auto &repeat = e.second;
|
||||
repeat.reports.clear();
|
||||
repeat.reports.insert(report);
|
||||
castle.report_map[report].insert(top);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user