mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 11:15:36 +00:00
fix for cells that have no region.
This commit is contained in:
parent
ae77e7b0d8
commit
0afda15ce9
1 changed files with 2 additions and 1 deletions
|
@ -447,7 +447,8 @@ void WindowManager::changeCell(MWWorld::Ptr::CellStore* cell)
|
|||
else
|
||||
{
|
||||
const ESM::Region* region = MWBase::Environment::get().getWorld()->getStore().regions.search(cell->cell->region);
|
||||
name = region->name;
|
||||
if (region)
|
||||
name = region->name;
|
||||
}
|
||||
|
||||
map->setCellName( name );
|
||||
|
|
Loading…
Reference in a new issue