mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-29 21:37:57 +03:00
build external cell names from name of region instead of from internal region id
This commit is contained in:
parent
db2b238328
commit
814d721e33
2 changed files with 16 additions and 4 deletions
|
@ -226,12 +226,14 @@ namespace ESMS
|
|||
|
||||
const Cell *searchExtByRegion (const std::string& id) const
|
||||
{
|
||||
std::string id2 = toLower (id);
|
||||
|
||||
for (ExtCells::const_iterator iter = extCells.begin(); iter!=extCells.end(); ++iter)
|
||||
{
|
||||
const ExtCellsCol& column = iter->second;
|
||||
for (ExtCellsCol::const_iterator iter = column.begin(); iter!=column.end(); ++iter)
|
||||
{
|
||||
if (iter->second->region==id)
|
||||
if (toLower (iter->second->region)==id)
|
||||
return iter->second;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue