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

--HG--
branch : develop
This commit is contained in:
Nimetu 2017-01-21 13:29:05 +02:00
parent fa8e1d95db
commit 524f80c8a0

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)
{