mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 14:36:40 -04:00
Closes #1090: Don't throw an exception if a cell has no region in GetPCCell
This commit is contained in:
parent
154fae9f25
commit
bf02b77c1d
@ -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…
x
Reference in New Issue
Block a user