mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 12:58:00 +03:00
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:
commit
665924c79d
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue