mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
fix for cells that have no region.
This commit is contained in:
parent
ae77e7b0d8
commit
0afda15ce9
@ -447,6 +447,7 @@ void WindowManager::changeCell(MWWorld::Ptr::CellStore* cell)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
const ESM::Region* region = MWBase::Environment::get().getWorld()->getStore().regions.search(cell->cell->region);
|
const ESM::Region* region = MWBase::Environment::get().getWorld()->getStore().regions.search(cell->cell->region);
|
||||||
|
if (region)
|
||||||
name = region->name;
|
name = region->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user