popups: avoid infinite recursion in bf

This commit is contained in:
Vaxry 2024-05-10 02:28:21 +01:00
parent a7e23d2f1e
commit db30ff63e6

View file

@ -294,6 +294,7 @@ void CPopup::bfHelper(std::vector<CPopup*> nodes, std::function<void(CPopup*, vo
} }
} }
if (!nodes2.empty())
bfHelper(nodes2, fn, data); bfHelper(nodes2, fn, data);
} }