mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-19 18:09:50 +00:00
Fix an AABB assert for loading empty exterior cells
This commit is contained in:
parent
c6d2d1999a
commit
5af89a9e8f
1 changed files with 2 additions and 1 deletions
|
@ -652,7 +652,8 @@ void RenderingManager::requestMap(MWWorld::Ptr::CellStore* cell)
|
|||
Ogre::Vector2 center(cell->mCell->getGridX() + 0.5, cell->mCell->getGridY() + 0.5);
|
||||
dims.merge(mTerrain->getWorldBoundingBox(center));
|
||||
|
||||
mTerrain->update(dims.getCenter());
|
||||
if (dims.isFinite())
|
||||
mTerrain->update(dims.getCenter());
|
||||
|
||||
mLocalMap->requestMap(cell, dims.getMinimum().z, dims.getMaximum().z);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue