popups: avoid infinite recursion in bf
This commit is contained in:
parent
a7e23d2f1e
commit
db30ff63e6
1 changed files with 2 additions and 1 deletions
|
|
@ -294,7 +294,8 @@ void CPopup::bfHelper(std::vector<CPopup*> nodes, std::function<void(CPopup*, vo
|
|||
}
|
||||
}
|
||||
|
||||
bfHelper(nodes2, fn, data);
|
||||
if (!nodes2.empty())
|
||||
bfHelper(nodes2, fn, data);
|
||||
}
|
||||
|
||||
void CPopup::breadthfirst(std::function<void(CPopup*, void*)> fn, void* data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue