Merge branch 'showmap' into 'master'

Don't mark nameless cells in ShowMap (#8466)

Closes #8466

See merge request OpenMW/openmw!4649
This commit is contained in:
Alexei Kotov 2025-04-25 21:41:09 +03:00
commit 665924c79d

View file

@ -125,7 +125,7 @@ namespace MWScript
for (auto it = cells.extBegin(); it != cells.extEnd(); ++it)
{
const auto& cellName = it->mName;
if (Misc::StringUtils::ciStartsWith(cellName, cell))
if (!cellName.empty() && Misc::StringUtils::ciStartsWith(cellName, cell))
winMgr->addVisitedLocation(cellName, it->getGridX(), it->getGridY());
}
}