forked from teamnwah/openmw-tes3coop
Closes #1090: Don't throw an exception if a cell has no region in GetPCCell
This commit is contained in:
parent
154fae9f25
commit
bf02b77c1d
1 changed files with 2 additions and 1 deletions
|
@ -107,7 +107,8 @@ namespace MWScript
|
|||
|
||||
std::string current = cell->mName;
|
||||
|
||||
if (!(cell->mData.mFlags & ESM::Cell::Interior) && current.empty())
|
||||
if (!(cell->mData.mFlags & ESM::Cell::Interior) && current.empty()
|
||||
&& !cell->mRegion.empty())
|
||||
{
|
||||
const ESM::Region *region =
|
||||
MWBase::Environment::get().getWorld()->getStore().get<ESM::Region>().find (cell->mRegion);
|
||||
|
|
Loading…
Reference in a new issue