Fixed: Crash when trying to navigate to non-existing #anchor
This commit is contained in:
parent
661473d9cd
commit
ea95d93fac
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue