mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 19:41:33 +00:00
Merge branch 'getcellnametes4' into 'master'
Use the display name instead of the editor ID for World::getCellName See merge request OpenMW/openmw!3564
This commit is contained in:
commit
76843aff19
1 changed files with 2 additions and 2 deletions
|
@ -660,8 +660,8 @@ namespace MWWorld
|
||||||
|
|
||||||
std::string_view World::getCellName(const MWWorld::Cell& cell) const
|
std::string_view World::getCellName(const MWWorld::Cell& cell) const
|
||||||
{
|
{
|
||||||
if (!cell.isExterior() || !cell.getNameId().empty())
|
if (!cell.isExterior() || !cell.getDisplayName().empty())
|
||||||
return cell.getNameId();
|
return cell.getDisplayName();
|
||||||
|
|
||||||
return ESM::visit(ESM::VisitOverload{
|
return ESM::visit(ESM::VisitOverload{
|
||||||
[&](const ESM::Cell& cellIn) -> std::string_view { return getCellName(&cellIn); },
|
[&](const ESM::Cell& cellIn) -> std::string_view { return getCellName(&cellIn); },
|
||||||
|
|
Loading…
Reference in a new issue