1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

Stop WorldPackets about invalid cells from causing framelistener errors

This commit is contained in:
David Cernat 2016-11-15 19:51:05 +02:00
parent a430ee011a
commit 527024a026

View file

@ -25,7 +25,16 @@ MWWorld::CellStore *mwmp::WorldController::getCell(const ESM::Cell& cell)
if (cell.isExterior())
cellStore = MWBase::Environment::get().getWorld()->getExterior(cell.mData.mX, cell.mData.mY);
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;
}