mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 03:53:52 +00:00
Stop WorldPackets about invalid cells from causing framelistener errors
This commit is contained in:
parent
a430ee011a
commit
527024a026
1 changed files with 10 additions and 1 deletions
|
@ -25,7 +25,16 @@ MWWorld::CellStore *mwmp::WorldController::getCell(const ESM::Cell& cell)
|
||||||
if (cell.isExterior())
|
if (cell.isExterior())
|
||||||
cellStore = MWBase::Environment::get().getWorld()->getExterior(cell.mData.mX, cell.mData.mY);
|
cellStore = MWBase::Environment::get().getWorld()->getExterior(cell.mData.mX, cell.mData.mY);
|
||||||
else
|
else
|
||||||
cellStore = MWBase::Environment::get().getWorld()->getInterior(cell.mName);
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
cellStore = MWBase::Environment::get().getWorld()->getInterior(cell.mName);
|
||||||
|
}
|
||||||
|
catch (std::exception&)
|
||||||
|
{
|
||||||
|
cellStore = NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return cellStore;
|
return cellStore;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue