Stop WorldPackets about invalid cells from causing framelistener errors

pull/112/merge
David Cernat 8 years ago
parent a430ee011a
commit 527024a026

@ -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;
}

Loading…
Cancel
Save