Fixed: Crash when trying to navigate to non-existing #anchor

This commit is contained in:
Nimetu 2017-01-21 13:29:05 +02:00
parent 661473d9cd
commit ea95d93fac

View file

@ -5220,6 +5220,11 @@ namespace NLGUI
void CGroupHTML::doBrowseAnchor(const std::string &anchor)
{
if (_Anchors.count(anchor) == 0)
{
return;
}
CInterfaceElement *pIE = _Anchors.find(anchor)->second;
if (pIE)
{